[jboss-user] [JBoss Web Services] - Parralel asynchronous calls
Peter Johnson
do-not-reply at jboss.com
Thu Apr 15 11:26:20 EDT 2010
Peter Johnson [http://community.jboss.org/people/peterj] replied to the discussion
"Parralel asynchronous calls"
To view the discussion, visit: http://community.jboss.org/message/537768#537768
--------------------------------------------------------------
That error means that either you are running with too small of a heap or you have a memory leak. What heap size (-Xmx) are you specifying? And are you sure that the JVM is using that much heap? Checking the process memory utilization usually helps here - if you set -Xmx512M and the java process is using less than 100MB of memory, you know it didn't see the -Xmx512M. But if the java process is using around 600MB you kn ow that it did see the setting.
If you have a sufficiently large heap, then you need to figure out where the memory leak is. Try setting -XX:+HeapDumpOnOutOfMemoryError. This option causes the JVM to dump the heap to a file which you can then analyze using a tool such as VisualVM. VisualVM will show you which objects occur the most often and which objects are using the most heap space.
By the way, "too small of a heap" depends entirely on your application. If you are passing, and dealing with, very large objects then you will need a lot more heap that if you are working with ints, longs and short strings.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/537768#537768]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100415/7b3ca5bd/attachment.html
More information about the jboss-user
mailing list