• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

puzzle of OutofMemory.

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Environment:
Resin-2.0
apache-1.3and
jdk-1.4.2
OS:redhat(physics memory is 1G)


The web service is composited by several web app.

We start resin by command "httpd.sh -Xmn100M -Xms500M -Xmx500M",
and we write the following code in a monitor jsp.


the output like following, we found the totalMemoryKB is varid in 180000-210000


PROBLEM
When several user access the diff web app, resin throws OutofMemory error.
note, if many user access the same web app, resin would not crash.
so it is very puzzle.

on the other hand, if we stop the timetask in my web apps, in any case the resin would not crash.
in BackupTableTask extended TimerTask, the code as the following, and the task is invoked in init() by a servlet:

So, whether could I say TimerTask is conflicted with resin?
How should I deal it?
 
reply
    Bookmark Topic Watch Topic
  • New Topic