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
SUNFLOW(1)						       SUNFLOW DOCUMENTATION							SUNFLOW(1)

NAME
sunflow - rendering system for photo-realistic image synthesis SYNOPSIS
sunflow [option(s)] file(s) DESCRIPTION
sunflow is an open source rendering system for photo-realistic image synthesis. It is written in Java and built around a flexible ray tracing core and an extensible object-oriented design. It was created as a framework for experimenting with global illumination algorithms and new surface shading models. GENERAL OPTIONS
A summary of the options can be obtained by using one of the following options: -h, -help Display the list of available commands PERFORMANCES
Sunflow will run considerably faster with the so called server VM (Virtual Machine). This server VM is part of Java, but it's not included in the standard (JRE) installation of Java. The server VM starts up more slowly and uses more memory than the standard VM, but it runs a lot faster in many cases. Sunflow's built-in realtime raytracing benchmark (-rtbench) for example runs more than twice as fast with the server VM (exact speedup depends on your hardware). The easiest way to get the server VM is by installing the Java Development Kit (JDK). On Debian, it is possible to install different JVM at the same time, amongst which: gij-4.2 (main), openjdk-6-jre (main), sun-java5-jre (non-free), sun-java6-jre (non-free). To change the java link from one to another, use (with root privileges): "update-alternatives --config java" A pretty good choice should be openjdk-6-jre. See also the "CONFIGURATION FILES" section. SUGGESTED OPTIONS
As explained above, the following options can be used to obtain a performance gain, but depend on JVM used: -server Use the server virtual machine. The JDK matching the selected JVM has to be installed for this option to actually work, e.g. sun-java5-jdk (non-free). A warning will be displayed otherwise, and this option ignored. -XmxMEM Use a memory upper limit of MEM instead of the default (probably 64M). Example of valid values: 512M, 1G. Those options are best set through the SUNFLOW_JAVA_OPTIONS environment variable, or stored in the configuration files. CONFIGURATION FILES
To allow flexible configuration, the sunflow wrapper sources two configuration files: /etc/sunflowrc and ~/.sunflowrc, in this order. The syntax is simple "export KEY=VALUE". Lines beginning with a sharp sign are ignored. The following options are supported: SUNFLOW_JAVA The java virtual machine to use. It's then possible to have e.g. a system-wide java alternative pointing to /usr/bin/gij-4.2, while sunflow uses a different JVM, e.g. /usr/lib/jvm/java-1.5.0-sun-1.5.0.12/bin/java. If not set (the default), java will be called, meaning the system-wide alternative will be used. SUNFLOW_JAVA_OPTIONS Those are the options to be passed to the java interpreter, see above for examples. SUNFLOW_OPTIONS The list of options to pass to sunflow automatically to avoid repeating them on each invokation of sunflow. Quotation marks are needed if more than one option is specified. If not set (the default), no option is passed to sunflow. SEE ALSO
/usr/share/doc/sunflow/README.Debian AUTHOR
Sunflow was written by Christopher Kulla <ckulla@gmail.com>. This manual page was written by Cyril Brulebois <kibi@debian.org>, for the Debian project (and may be used by others). It is licensed under the same terms as the package itself. 0.07.2.svn396 2011-08-07 SUNFLOW(1)
All times are GMT -4. The time now is 06:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy