Two Laptop Bag*
The moose likes Performance and the fly likes why i am getting OOM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "why i am getting OOM " Watch "why i am getting OOM " New topic
Author

why i am getting OOM

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi Ranchers ,

I am running only one servlet and also it is running on my pc (a sample application for practice) but why the server is throwing OOM , and more this servlet is not any data from anywhere .

Can anybody please help me for the reason of this ??


Save India From Corruption - Anna Hazare.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41106
    
  45
Maybe the servlet does something that uses up all the available memory.


Ping & DNS - my free Android networking tools app
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

I will try to find it out .Thanks.
Kees Jan Koster
JavaMonitor Support
Rancher

Joined: Mar 31, 2009
Posts: 251
    
    5
Dear Ravi,

Install the Java-monitor probe in Tomcat, it will show you what memory pools are being exhausted (heap or non-heap memory) and you can see how the memory use develops over time.

Java-monitor, JVM monitoring made easy <- right here on Java Ranch
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi , i downloaded the software and installed it , but it does not show how it works , and strangely when i run http:localhost:8088/java-monitor , it redirects to their website nor its forum responds to my question . Do you have any idea ?

srinivas srinivasmeenavalli
Ranch Hand

Joined: Jul 13, 2008
Posts: 65
Which application server your are using ?
is it websphere ? if yes you need to check heap dump files in
C:\Program Files\IBM\Rational\SDP\6.0\runtimes\base_v6\profiles\default
after that start your Rational application developer with
rationalsdp.exe -clean
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234


sorry i did not mention that :

I am using Tomcat 5.0
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Have you done the simple thing and increased the heap size? That may well be all it needs.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi ,

i added these two lines inside bin/catilina.bat


set JAVA_OPTS=-XX:PermSize=64M -XX:MaxPermSize=128M
export CATALINA_OPTS=-Xms128m -Xmx256m;


and restarted the system itself , but no use , it shows me this page :
[url]
http://www.java-monitor.com/[/url]

Thanks , it will be very helpful if any suggestions .

Kees Jan Koster
JavaMonitor Support
Rancher

Joined: Mar 31, 2009
Posts: 251
    
    5
Dear Ravi,

To see Java-monitor's statistics, log into the Java-monitor forum and it will show the stats right there on http://java-monitor.com/forum/
Kevin Chen
Greenhorn

Joined: Nov 02, 2008
Posts: 5
what kind of OOM did you get?

heap space?
permgen space?
or .......???


Free as in Freedom
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: why i am getting OOM
 
Similar Threads
How to set -Xmx -Xms in Eclipse
OOM
Using record cache and booking method
Heap Dump in jdk1.4.2
(JRE) HeapDumpOnOutOfMemoryError Not Working...