Robospice cache out fo memory

44 views
Skip to first unread message

Angel Vargas

unread,
Mar 9, 2015, 12:55:47 PM3/9/15
to robo...@googlegroups.com
Hello everyone, I have a problem using robospice's cached requests, I am downloading a list of 30000 registers, but in the middle of the caching process, appears a problem with the gsonobjectpersister, an out of memory error, so my question is, how do I configure the cache size of my object persister in the method createCacheManager of my robospice service class. Thanks in advance.

Stéphane NICOLAS

unread,
Mar 9, 2015, 2:24:25 PM3/9/15
to robo...@googlegroups.com
Chances that the problem is not related to the size of the cache. But it probably comes from the 30 k things your parse...

Can't you refactor your service to get it paginated ? Those little devices don't have so much memory...

2015-03-09 9:55 GMT-07:00 Angel Vargas <alfc...@gmail.com>:
Hello everyone, I have a problem using robospice's cached requests, I am downloading a list of 30000 registers, but in the middle of the caching process, appears a problem with the gsonobjectpersister, an out of memory error, so my question is, how do I configure the cache size of my object persister in the method createCacheManager of my robospice service class. Thanks in advance.

--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes "RoboSpice".
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse robospice+...@googlegroups.com.
Pour obtenir davantage d'options, consultez la page https://groups.google.com/d/optout.

alfc...@gmail.com

unread,
Mar 9, 2015, 2:29:56 PM3/9/15
to robo...@googlegroups.com
‎I am negotiating to make them paginated or something because is really a pain in the *** to parse all those elements. However, I was curious about the cache size. Thanks xD. 
Vous recevez ce message, car vous êtes abonné à un sujet dans le groupe Google Groupes "RoboSpice".
Pour vous désabonner de ce sujet, visitez le site https://groups.google.com/d/topic/robospice/2emPjU-mfWk/unsubscribe.
Pour vous désabonner de ce groupe et de tous ses sujets, envoyez un e-mail à l'adresse robospice+...@googlegroups.com.

Stéphane NICOLAS

unread,
Mar 9, 2015, 2:31:00 PM3/9/15
to robo...@googlegroups.com
Cache size refers to the disk size, which can be changed at the entry point you mention. But here it's really a RAM problem.
Reply all
Reply to author
Forward
0 new messages