- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- use of memory by java on hpux
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
10-23-2005 10:02 AM
10-23-2005 10:02 AM
In what respect java uses memory (ram) different than other software such as c, c++ etc ?
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2005 03:33 PM
10-23-2005 03:33 PM
Re: use of memory by java on hpux
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2005 03:36 PM
10-23-2005 03:36 PM
Re: use of memory by java on hpux
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2005 04:21 PM
10-23-2005 04:21 PM
Re: use of memory by java on hpux
[ Performance tests show Java as fast as C++]
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2005 05:26 PM
10-23-2005 05:26 PM
Re: use of memory by java on hpux
i like this explanation:
http://javaboutique.internet.com/articles/java_memory/
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2005 06:25 PM
10-23-2005 06:25 PM
Re: use of memory by java on hpux
please allow me to add the following informations that will allow you to monitor your "java"
if you have glance plus, you can run the following:
glance -j10 -adviser_only -iterations 2 -syntax ./gln_proc_template_syntax_file
which will give you a detailed output which will look as:
# User CPU Util Cum Disk Thd
#Process Name PID PPID Pri Name ( 200% max) CPU IO Rate RSS Cnt
#------------ ------ ------ --- -------- ------------ -------- --------- ------- ---
# 10/24/05 10:27:57 C= 80 D= 9 M=100 S= 55
java 2143 1 255 root 0.0/ 0.0 394.4 0.0/ 0.0 141.3mb 10
# 10/24/05 10:28:07 C= 88 D= 10 M=100 S= 55
java 2143 1 255 root 0.0/ 0.0 394.4 0.0/ 0.0 141.3mb 10
hope this helps too!
kind regads
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2005 07:02 PM
10-23-2005 07:02 PM
Re: use of memory by java on hpux
So it caches some in Ram to increase the performance. Otherwise it will become quite slow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2005 07:22 PM
10-23-2005 07:22 PM
Re: use of memory by java on hpux
Syntax file ./gln_proc_template_syntax_file is not available. Use default syntax file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2005 07:25 PM
10-23-2005 07:25 PM
Re: use of memory by java on hpux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2005 07:26 PM
10-23-2005 07:26 PM
Re: use of memory by java on hpux
Check what your process is using.
ps -efx|grep [j]ava
java -help will give available options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2005 08:48 PM
10-23-2005 08:48 PM
Re: use of memory by java on hpux
sorry, you will also need the template file.
see attachment.
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2005 08:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2005 11:02 PM
10-25-2005 11:02 PM
Re: use of memory by java on hpux
C++ is a superset of c, however, there are way more functions in more libraries which use more space. Then C++ has some 4-gl and/or object-oriented features, including memory managers and garbage collectors and such. In the end, both c and C++ provide binaries that do need some libraries but that's it. The major difference will be a larger text-size for C++.
Then Java is more a 4-gl and/or object-oriented than C++, relying more on the memory management and the garbage-collector. This might result in a smaller text-size but will give a larger data-size And at run-time, java does need its virtual machine, which does occupy its resources.
So from code point of view, I see c as the most lean and clean code and java the most wastefull. However, with larger code sets, the differences will become less.
If you are willing to know, try to find something that is created in java and c/c++. Like 'hello_world.c' (just print the string "hello world" on the screen). I do know vnc (http://www.realvnc.com), that provides binary viewers for lots of platforms and also a java viewer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2005 06:30 AM
10-27-2005 06:30 AM
Re: use of memory by java on hpux
Memory reuse is different in Java where there is garbage collection, versus expicit control of this in C or C++. There are many debates over the merits of each approach. Well written C or C++ is likely to be better, but that assumes the code is well written.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2005 06:31 AM
10-27-2005 06:31 AM