how to configure heap size for jswat - java.lang.OutOfMemoryError: Java heap space

71 views
Skip to first unread message

Kun Luo

unread,
Jul 15, 2013, 12:30:31 PM7/15/13
to jswat-...@googlegroups.com
I am using jswat 2003.1 on linux and I keep getting the outofmem error when I ran the jswat program:
 
bash-4.1$ ./JSwat --jdkhome /files/tools/jdk1.7.0_25
java.lang.OutOfMemoryError: Java heap space
Dumping heap to .jswat/setting/var/log/heapdump.hprof ...
Heap dump file created [76803235 bytes in 1.299 secs]
 
Anyone knows how I could configure the heap size and memory size for JSwat?

Nathan Fiedler

unread,
Jul 16, 2013, 9:13:16 AM7/16/13
to jswat-...@googlegroups.com
Hi Kun

Sorry you are running into this problem, it looks like the default maximum heap size is a touch on the low side. You can change this in the etc/JSwat.conf file by modifying the "default_options" setting. Change the -J-Xmx64m part to something like -J-Xmx256m, or even higher if need be. You can also set the jdkhome in that file as well, just uncomment the line and copy the path there.

Thanks

n



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

Reply all
Reply to author
Forward
0 new messages