- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Java Daemon and Memory Usage
Operating System - HP-UX
1819870
Members
2318
Online
109607
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-21-2002 02:31 PM
тАО11-21-2002 02:31 PM
I am running 3 Daemons coded in Java. The classes were compiled on Windows using Microsoft compiler and a jar file created. Each daemon runs in its own process. The daemons execute prefectly, identical to when they run as services on Windows. The problem is that they take up 2 to 2.5 time the memory that is used on Windows.
Couple of points.
I use nohup to start the Java vm. "nohup ~~path/java ~~path-to-class/class". Like I said, the application works perfectly, the issue is the memory is uses which is 2 to 2.5 times the Windows usage.
I determined memory usage by the "top" command.
I understand that memory may be calculated differently on Windows than on UNIX. If that is my problem, can someone explain the difference.
If someone knows the answer, can they point me to documentation, etc as well as explain it.
I realize next week is vacation and people will be out (myself included).
I appreciate any help I can get.
Couple of points.
I use nohup to start the Java vm. "nohup ~~path/java ~~path-to-class/class". Like I said, the application works perfectly, the issue is the memory is uses which is 2 to 2.5 times the Windows usage.
I determined memory usage by the "top" command.
I understand that memory may be calculated differently on Windows than on UNIX. If that is my problem, can someone explain the difference.
If someone knows the answer, can they point me to documentation, etc as well as explain it.
I realize next week is vacation and people will be out (myself included).
I appreciate any help I can get.
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2002 05:12 AM
тАО11-22-2002 05:12 AM
Solution
on hp-ux, if you launch the JVM without any options, you 'll have 64Mb of Max Heap size.
If you want to use less, try :
for 32Mb
#java -Xmx32 yourclass
for 16Mb
#java -Xmx16 yourclass
youb can read (-Xmx ) in this release note:
http://www.hp.com/products1/unix/java/java2/sdkrte1_3/infolibrary/sdk_rnotes_1-3-1-07.html#additional
regards,
Pierrick
If you want to use less, try :
for 32Mb
#java -Xmx32 yourclass
for 16Mb
#java -Xmx16 yourclass
youb can read (-Xmx ) in this release note:
http://www.hp.com/products1/unix/java/java2/sdkrte1_3/infolibrary/sdk_rnotes_1-3-1-07.html#additional
regards,
Pierrick
learn and explain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2002 05:49 AM
тАО11-22-2002 05:49 AM
Re: Java Daemon and Memory Usage
UX 11 has much better memory stats than UX 10 and is able to place most all of the system requirements for memory in the application stats
Windows on the other hand will have memory for system stuff (technical term) not charged to the application.
Java is a pig for memory usage compared to a compiled application.
Windows on the other hand will have memory for system stuff (technical term) not charged to the application.
Java is a pig for memory usage compared to a compiled application.
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP