• 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

Why are my Jetty servers eating up so much swap memory?

 
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Greetings to all,

In my environment (Solaris) I host applications for several clients and each application runs on each own Jetty server instance. I'm doing this to isolate each customer such that when one Jetty goes down only one customer is affected. The problem I have is that these Jetty servers are eating up a great deal of swap memory, some of them up to 410MB. I need to reduce this memory footprint but I'm not sure how to do it. My apps are Spring/Hibernate based. Each application has jars in WEB-INF/lib totaling 32MB. Any suggestions?

Thanks in advance.
 
JavaMonitor Support
Posts: 251
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Ernest,

How much memory are you Jetty servers configured to use? Check the java command line arguments. Probably there is something like -Xmx in there.

The short version is: make a memory dump and analyse that with a memory profiler.
Kees Jan
 
ernest fakudze
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Kees, I will experiment with the heap minimum and maximum sizes. They are currently not set.
 
Kees Jan Koster
JavaMonitor Support
Posts: 251
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can also install Java-monitor to get a view of your memory use over time. Here is a demo of what that might look like: http://java-monitor.com/livedemo.html
reply
    Bookmark Topic Watch Topic
  • New Topic