- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Swapiness or not to swapiness - that is the qu...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2010 07:13 AM
тАО11-22-2010 07:13 AM
The application people are screaming about process heap size and I don't see VSZ or RSS growing over time for any process.
The current box has a 2.6 kernel; I don't know what the previous box was.
I've seen one solution to reduce swapiness down from the default of 60 down to 20 to force cache to be flushed more frequently.
Used swap in 'free -m' is zero.
Comments?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2010 08:06 AM
тАО11-22-2010 08:06 AM
Re: Swapiness or not to swapiness - that is the question
If you have access to the old environment, is there someting in /etc/security/limits.conf that is specific to the user account that the Java app runs as?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2010 08:13 AM
тАО11-22-2010 08:13 AM
SolutionHave you already checked the JVM's memory parameters?
With modern versions of the Sun-developed JVM, they are set with the -Xms and -Xmx command line options when starting the Java application, and the default maximum for Java heap size is 1/4 of the system memory or 1 GB, whichever is _smaller_.
You say swap usage is zero and you don't see VSZ or RSS growing over time: that makes me suspect the application's memory usage might hit the JVM's limit pretty soon after it's started and then stay at that level "forever".
Since the JVM enforces the limit, from the OS's viewpoint it looks like the combination of application+JVM is not requesting any more memory, although the application within the JVM could certainly use more.
You don't mention anything that would indicate even the slightest memory pressure at the OS level: in fact, the zero swap usage would indicate that there has been *no* memory pressure since the last time the system was rebooted. I strongly suspect this is a JVM-level problem.
Does the Java application output any messages to stdout/stderr? If the JVM is hitting the ulimits, it usually tells that loud and clear.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2010 08:52 AM
тАО11-22-2010 08:52 AM
Re: Swapiness or not to swapiness - that is the question
As Matti said, check your startup params and make sure you've got enough space in that engine for it to run.
I *can* recommend someone to you, that I know has had great sucess tuning Java environments - however, it's not permitted here - so you'd have to expose an email address or other that I could send mail to. If you don't want to expose your own, consider one of the email providers who do temp mailboxes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2010 10:58 AM
тАО11-22-2010 10:58 AM
Re: Swapiness or not to swapiness - that is the question
there is a thread and dump analysis tool available on IBM site , which can analyse the core generated by kill -3 Java-PID in gui mode.
it will seprately identify the java threads and reason for their wait state if any .
Reg ,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2010 11:42 PM
тАО11-22-2010 11:42 PM
Re: Swapiness or not to swapiness - that is the question
for example, if you set it to 10, the kernel will try not to swap a lot and keep as much as possible in memory, if you set it to 90 almost everything will be swapped out except the running process.
changing the swappiness will most likely not help here unless this java process starts a lot of other things along the way.
i can recommend visual-vm, take a look at it or give it to your developers for troubleshooting;
https://visualvm.dev.java.net/features.html