Try a run a test and explore the memory with some tool: (visualvm,
jconsole, yourtoolkit, http://www.eclipse.org/mat/ ). If you are reading
from JDBC remember to use
TYPE_FORWARD_ONLY<http://docs.oracle.com/javase/7/docs/api/java/sql/ResultSet.html#TYPE_FORWARD_ONLY>in
the resultset to reduce the use of memory.

Regards,
Juan


2013/8/21 fedex <shashankgris...@gmail.com>

> hey juno
>
> how to check how many records I am putting in the memory?
>
>
> On Wednesday, August 21, 2013 9:14:01 AM UTC-5, Juan Pablo Gardella wrote:
>
>> I've created a file with 6M of records using
>> http://ostermiller.org/utils/**CSV.html<http://ostermiller.org/utils/CSV.html>without
>>  java heap memory issue. I think increment the memory it is a
>> workaround and isn't the solution. Check how much records you are putting
>> in memory.
>>
>>
>>
>>
>> 2013/8/21 Michael Joyner <mic...@newsrx.com>
>>
>>> You need to change how much memory java is allowed to allocate for the
>>> tomcat process. The default is rather small.
>>>
>>>
>>> On Tue, Aug 20, 2013 at 4:56 PM, fedex <shashan...@gmail.com> wrote:
>>>
>>>> For my application I am writing 1 million records to the csv file. It
>>>> works fine when I run in dev mode but when I deploy the application on
>>>> tomcat it throws java heap memory issue? why?
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Google Web Toolkit" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to google-web-toolkit+**unsubscr...@googlegroups.com.
>>>> To post to this group, send email to google-we...@**googlegroups.com.
>>>>
>>>> Visit this group at 
>>>> http://groups.google.com/**group/google-web-toolkit<http://groups.google.com/group/google-web-toolkit>
>>>> .
>>>> For more options, visit 
>>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>>> .
>>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google Web Toolkit" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to google-web-toolkit+**unsubscr...@googlegroups.com.
>>> To post to this group, send email to google-we...@**googlegroups.com.
>>>
>>> Visit this group at 
>>> http://groups.google.com/**group/google-web-toolkit<http://groups.google.com/group/google-web-toolkit>
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>> .
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to