This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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

 
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!