Sponsored Content
Full Discussion: Tuning Java on LINUX
Top Forums UNIX for Advanced & Expert Users Tuning Java on LINUX Post 302124314 by crabbie_upk on Friday 29th of June 2007 02:52:29 PM
Old 06-29-2007
Tuning Java on LINUX

Hi,

Need help in tuning JAVA on LINUX.

From http://www.trutek.com/index.php?id=173 I understand that on Linux operating system with 4GB memory, JVM can be run with maximum memory of 3800m. But I had no luck. Could someone help me in achieving on Red Hat Linux server.

Here is the details of my Linux server.

OS: Red Hat Linux (Linux xyzsrvr 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005 i686 i686 i386 GNU/Linux)
Java: java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Server VM (build 1.5.0_06-b05, mixed mode)
RAM: 4GB

I get this below error while instructing JVM to use 3800m.
$ java -Xmn3800m -Xmx3800m xxxxx (Lots of more options)
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

It would be great if someone help me on this.

Thank you,
Crabbie
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Java in Linux

DOes any1 know if the java.awt and javax.swing packages are installed in Redhat Linux 9.0 or not??. I have compiled a simple Java program and ran it but the Java programs related to GUI are not working. Can any1 provide some Help?. (4 Replies)
Discussion started by: rahulrathod
4 Replies

2. UNIX for Dummies Questions & Answers

Linux Programming in JAvA

is it advisible to do Linux Programming in JAVA.. If so, whats the advantage over C++ or C.. Cud anyone also help me out by providing some links in this regard.. Would be highly appreciated.. (1 Reply)
Discussion started by: srikumar_cs
1 Replies

3. Web Development

MySQL Tuning Tools with mysqltuner.pl and tuning-primer.sh

We have been tuning MySQL lately and I ran accoss two useful tools that you might be interested in: mysqltuner.pl tuning-primer.sh Both of these scripts are quite useful for MySQL tuning. Here is some sample output of mysqltuner.pl >> MySQLTuner 0.9.8 - Major Hayden... (3 Replies)
Discussion started by: Neo
3 Replies

4. Red Hat

Suggested books / Whitepapers for Linux Performance Tuning

Hi All, I'm looking for good reference books or white papers about Linux Redhat Performance tuning / system tuning. Thanks for any advice. (0 Replies)
Discussion started by: linuxqwer
0 Replies

5. Android

Android is Linux (and Java)

In case you did not know, Android 2.1, Éclair, runs on the 2.6.29 Linux kernel. However, the user space it is built atop Dalvik, a Google-designed custom JVM (Java virtual machine). This is pretty interesting, when you think about it. The core of Android is the linux kernel, and the standard... (5 Replies)
Discussion started by: Neo
5 Replies

6. Programming

Running a Java program on Linux

Hello, I have a project directory in /home/researcher I have in my project/src three packages:A (contains the main class), B and C and I have 2 jar-files file1.jar file2.jar files in the project/my-jars In Class A I import other classes from the other packages I compiled as follows:... (4 Replies)
Discussion started by: chercheur857
4 Replies

7. Linux

Linux through Java code

Hi How can I write a Java program to execute Linux commands? What is the best approach: Invoking the Linux shell within Java and executing commands or, using the Java APIs to do the stuff. Since it is platform independent, it'll know itself what to do. We need not check which OS the Java... (1 Reply)
Discussion started by: Dorothy
1 Replies
ELVTUNE(8)						      System Manager's Manual							ELVTUNE(8)

NAME
elvtune - I/O elevator tuner SYNOPSIS
elvtune [ -r r_lat ] [ -w w_lat ] [ -b b_max ] /dev/blkdev1 [ /dev/blkdev2 ... ] elvtune -h elvtune -v DESCRIPTION
elvtune allows to tune the I/O elevator per blockdevice queue basis. The tuning can be safely done at runtime. Tuning the elevator means being able to change disk performance and interactiveness. In the output of elvtune the address of the queue tuned will be shown and it can be considered as a queue ID. For example multiple partitions in the same harddisk will share the same queue and so tuning one partition will be like tuning the whole HD. OPTIONS
-r r_lat set the max latency that the I/O scheduler will provide on each read. -w w_lat set the max latency that the I/O scheduler will provide on each write. -b b_max max coalescing factor allowed on writes when there are reads pending in the queue. -h help. -v version. NOTE
Actually the only fields tunable are those relative to the IO scheduler. It's not possible to select a one-way or two-way elevator yet. For logical blockdevices like LVM the tuning has to be done on the physical devices. Tuning the queue of the LVM logical device is useless. RETURN VALUE
0 on success and 1 on failure. HISTORY
Ioctls for tuning elevator behaviour were added in Linux 2.3.99-pre1. AUTHORS
Andrea Arcangeli <andrea@suse.de> SuSE Version 1.0 14 March 2000 ELVTUNE(8)
All times are GMT -4. The time now is 03:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy