- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Java Based Process & Memory Management
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
Forums
Discussions
Discussions
Discussions
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
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
12-12-2004 08:40 AM
12-12-2004 08:40 AM
Java Based Process & Memory Management
I hava a java process running on my HP Box.
There are few things which I want to know..
1. How much of memory can be allocated to a
java process does it has certain limitation
by JVM not possible beyond 2 GB ?
2. Is there any script which can monitor
that process 24 Hours for CPU & MEM
utilization
4. Best practices for optimizing JVM on HP-UX
I am currently running JVM latest version
and HP-UX B 11.11
Thanks,
Amit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2004 11:31 AM
12-12-2004 11:31 AM
Re: Java Based Process & Memory Management
What I've seen on my systems with java depends on optimizing the applications that use Java.
Most of the java use on my systems is by Oracle products,which utilize it extensively. I've been very frustrated by seeing all kinds of java processes running with huge amounts of memory and not knowing why.
The answer was in the Oracle database and application server configuration files. We optimized those according to Oracle guidelines and although use was high, it stopped bottlenecking the system.
We also ran into a few Oracle bugs that caused what looked like java problems but were just application server problems.
So, the answer is it kind of depends. As a reference, I'm attaching the imprecise tools I used to identify the bottlenecks java but really oracle was causing.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2004 11:31 AM
12-12-2004 11:31 AM
Re: Java Based Process & Memory Management
2. There is no special script, just write a cron job to use sar and monitor usage. Note that HP-UX is a virtual memory system so you can run thousands of megs of code in just hundreds of megs of RAM. Of course, the processes will be paging excessively so performance will be very poor. In that case, you just add (a LOT more) memory. And for threaded Java code, you may need more CPUs.
4. There are special practices other than to avoid using inefficient Java routines in the design of the application.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2004 02:08 PM
12-12-2004 02:08 PM
Re: Java Based Process & Memory Management
lawrenzo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2004 02:24 PM
12-12-2004 02:24 PM
Re: Java Based Process & Memory Management
We do have a config paramter to allocate
memory to JVM and that is in the server
startup script.
We have set it to 2048 MB.
We have a built in monitor within the
tool which shows the total mem consued
out of that 2 Gigs which normally hobber
around 54%.
But as the day progresses memory usage
keeps on increasing and ultimately we
have to restart the application.
How to solve this problem.
Is it limitation with HP to use only
2048 MB for JVM config.
We do have oracle but that is running on
different box.
No problems with CPU usage.
ONLY MEM is the bottelneck.
Thanks,
Amit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2004 12:39 AM
12-13-2004 12:39 AM
Re: Java Based Process & Memory Management
Now, is the memory (2Gb) local memory to the Java code or is it shared memory that several processes are using? The 960meg rule for 32bit programs (probably what your Java code is running) is also a limit for shared memory. There is a shared magic feature that allows shared memory to grow to 1750megs *BUT* all programs must be recompiled or chatr'd to use the additional 1Gb quadrant. And additionally, there is only one shared memory map for 32bit programs which all processes must use. This map can become fragmented and a process may not be able to allocate a required segment even though there are many smaller chunks that add up to more than enough.
These limitations are all a function of 32bit programs--they all disappear when the applications are recompiled as 64bit programs. If you do not have the source code or the programmers to fix the code, about all you can do is to get all the latest patches and report the mmemory leak to the supplier. To monitor which processes are growing in size, use something like this in a cron job:
UNIX95= ps -eo vsz,pid,ruser,args | sort -rn | head -50 >> /var/tmp/jvm.log
HP-UX is a virtual memory system so even if you don't have enough RAM, processes can continue to grow up to the amount of swap space you have. However, processing performance will be terrible once continuous paging occurs. swapinfo -tm will show you if swap space is in use. Since you're running 11.11, the buffer cache will shrink down as processes need more RAM, but it is a good idea to reduce dbc_max_pct to a percentage that works out to 400-600megs max.
Bill Hassell, sysadmin