aspose file tools
The moose likes Threads and Synchronization and the fly likes Out of Memory Error  !!!!!!!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply Bookmark "Out of Memory Error  !!!!!!!!!" Watch "Out of Memory Error  !!!!!!!!!" New topic
Author

Out of Memory Error !!!!!!!!!

suresh Nalliannan
Greenhorn

Joined: May 03, 2004
Posts: 2
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

Joined: Mar 23, 2004
Posts: 82
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

Joined: Jan 09, 2001
Posts: 147
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.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Out of Memory Error !!!!!!!!!
 
Similar Threads
Referenced memory coud not be read
Out of Memory Error !!!!!!!!
JBoss 4.2.1
Web application clustering
problem in getting the database connection from a connection pool