• Post Reply Bookmark Topic Watch Topic
  • New Topic

Out of Memory Error !!!!!!!!!  RSS feed

 
suresh Nalliannan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am facing Out of Memory Error in my application.
Problem Explanation
I am running two applications one is running in the weblogic server (version 7.0 sp2) this will post the data to particular port, from that port my another application (thread application) will collect the data and write into file once dump is over I am clearing the collected data and again collecting fresh data from server. I configured java virtual machine size �ms256 �mx256 for weblogic server and �ms16 �ms32 for my application. This two application is running in different JVM. When I start the application it�s starting smoothly and collecting the data after some time I am facing the Out of Memory error. I explicitly configured the application to get the outofMemory error because whenever out of memory error occurs I need to handle that error. For solving this problem I am restarting the second application, which is collecting the data from weblogic port. Still I am facing the same problem.
Is there any bottleneck in my application?
If I restart the both application it�s running smoothly. Is there any other solution to solve this problem?
Can anyone help me in this?
Thanks and Regards
Suresh Nalliannan
 
C. Nimo
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suresh - that's a bit of a crosspost over sites..
I answered you at Sun's, anyway:
I reckon -Xmx32 is too small for the application. Try raising it, as if it has a lot of short-lived objects (which from your description I guess it does) - you are bound to get the OutOfMemory error.
If this doesn't help - I'd check for memory leaks.
Nimo.
 
Yaroslav Chinskiy
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How large is the buffer for incoming data?
Do you flush the buffer to a disk from memory?

Are u sure that there is no loop where object calls on its own stack? that whould throw OutOfMemory exception.

Try something like jprofiler (www.jprofiler.com) to check your memory and threads.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!