[jboss-user] [Performance Tuning] - Re: Full GC not releasing Memory

2009-06-30 Thread vons1234
Hi Peter, I think OS ran out of room while allocating memory for threads. I am using thread stack size as -Xss128k and when i do ulimit -s on linux it shows 10240. Increasing ulimit for thread will help??? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240

[jboss-user] [Performance Tuning] - Re: Full GC not releasing Memory

2009-06-30 Thread vons1234
Yes that's correct Peter, I am running jmap with same account under which Jboss is running. That's a good idea to run with hello world first. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240878#4240878 Reply to the post : http://www.jboss.org/index.html?

[jboss-user] [Performance Tuning] - Re: Full GC not releasing Memory

2009-06-30 Thread smar...@redhat.com
Be sure that you aren't using the jmap tool from an JDK 1.6 installation (unlikely but thought it was worth mentioning). http://www.j2ee.me/javase/6/webnotes/trouble/other/matrix5-Unix.htm talks about Java SE 5.0 update 14 supporting -XX:+HeapDumpOnCtrlBreak option. I haven't tried this but ma

[jboss-user] [Performance Tuning] - Re: Full GC not releasing Memory

2009-06-29 Thread PeterJ
It might help. But you really first need to find out where the threads are being allocated, and especially for JBoss AS ask yourself if you really need as many threads as you are allocating. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240889#4240889 Reply

[jboss-user] [Performance Tuning] - Re: Full GC not releasing Memory

2009-06-29 Thread PeterJ
Each thread uses 1MB of memory (at least, I think that is the default - it keeps on changing and is different for each OS) - looks like you ran out of available memory (there is also the possibility that the OS ran out of room within its memory area to allocate another thread). You could try red

[jboss-user] [Performance Tuning] - Re: Full GC not releasing Memory

2009-06-29 Thread vons1234
Now i got following exception in Jboss server log. | 2009-06-29 03:48:04,732 ERROR [org.jgroups] uncaught exception in Thread[PingWaiter,5,JGroups threads] (thread group=org.jgroups.util.Util$1[name=JGroups threads,maxpri=10] ) | java.lang.OutOfMemoryError: unable to create new native threa

[jboss-user] [Performance Tuning] - Re: Full GC not releasing Memory

2009-06-29 Thread vons1234
Peter, The hello world heap dump is working Thanks!, I will run the jmap again for jboss process and will wait to see how long it takes, My Heap size is 1G, i think it will take at least 10-15 mins to dump that. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p

[jboss-user] [Performance Tuning] - Re: Full GC not releasing Memory

2009-06-29 Thread PeterJ
Are you running jmap with the same account under which JBoss AS is running? Also, it might take a while to dump a large heap. If none of that helps, try dumping a simple hello world java app and see if that works. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p

[jboss-user] [Performance Tuning] - Re: Full GC not releasing Memory

2009-06-29 Thread vons1234
I am not using JDK 1.6, I am using JDK 1.5 update 12.. I have already added the option XX:+HeapDumpOnOutOfMemoryError, and for this i will have to wait for OutOfmemory exception, but for running process how to get the heap dump? Should i consider to upgrade to JDK 6? View the original post :

[jboss-user] [Performance Tuning] - Re: Full GC not releasing Memory

2009-06-29 Thread vons1234
I tried to run jmap utility to get the heap dump using following command jmap -heap:format=b However after running following command it says Attaching to process ID , please wait... and just hung, no output after that. I am running it on RHEL 4 using JDK 1.5.0_12-b04 is there anything am i mi

[jboss-user] [Performance Tuning] - Re: Full GC not releasing Memory

2009-06-27 Thread smar...@redhat.com
At the moment, my favorite OSS tool for finding memory issues is http://www.eclipse.org/mat/ Basically, you generate a heap dump and run the eclipse memory analyzer against it. You will get a report of the likely suspects and can view the contents of any memory variable. View the original p

[jboss-user] [Performance Tuning] - Re: Full GC not releasing Memory

2009-06-26 Thread vons1234
Also i have taken the screen shot from gcviewer which is easier to look at. | http://66.39.39.38/GC_Running.PNG | http://66.39.39.38/GC_Dead1.PNG | http://66.39.39.38/GC_Dead2.PNG | Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240435#424043

[jboss-user] [Performance Tuning] - Re: Full GC not releasing Memory

2009-06-26 Thread vons1234
Hi Peter, Thanks for your input. I am using JDK6 VisualVM as well as JConsole utility to monitor, however VisualVM does not keep old heap analysis, it gives you analysis for last 1-2 hrs only. Jconsole at least gives all the data, if you keep it running, though it does not record. And if it we

[jboss-user] [Performance Tuning] - Re: Full GC not releasing Memory

2009-06-25 Thread PeterJ
Looks like you have a memory leak - look at the heap size after each GC. Also, with setting the young gen to 400M, you will end up running a major collection if you have more that around 600MB heap in use - once you crossed that magic barrier you get nothing but full GCs. You will need to monit