Admin Console Tasks for JVM Settings
The Java Virtual Machine (JVM) is included in the Java 2 Standard Edition (J2SEJ2SE TM ) software, which is required by the Application Server. Because incorrect JVM settings will prevent the server from running, you should take care when changing these settings.
- In tree component, select Configurations.
- Click the JVM Setting node from the target server instance.
- By default, the General link located below the tabs is already selected.
- On the JVM General Settings page, you may specify the following:
- In the Java Home field, enter the name of the installation directory of the Java 2 Standard Edition (J2SE) software. The Application Server relies on the J2SE software. To verify that the J2SE version you specify is supported in this release, refer to the Release Notes. (See the link in the Further Information section.) Note – If you enter a nonexistent directory name or the installation directory name of an unsupported version of the J2SE software, then the Application Server will not start.
- In the Javac field, type the command-line options for the Java programming language compiler. The Application Server runs the compiler when EJB components are deployed.
- To set up debugging with the JPDA (Java Platform Debugger Architecture), you select the Debug Enabled checkbox and specify options in the Debug Options field. JPDA is used by application developers. For more information, see the Debugging J2EE Applications chapter of the Application Server Developer’s Guide. (For a link to the guide, see Further Information.)
- In the RMI Compile Options field, type the command-line options for the rmic compiler. The Application Server runs the rmic compiler when EJB components are deployed.
- In the Bytecode Preprocessor field, type a comma separated list of class names. Each class must implement the com.sun.appserv.BytecodePreprocessor interface. The classes are called in the order specified. Tools such as profilers might require entries in the Bytecode Preprocessor field. Profilers generate information used to analyze server performance. For more information about profiling, see the Debugging J2EE Applications chapter of the Application Server Developer’s Guide.
To configure the JVM classpath settings
The classpath is the list of JAR files that the Java runtime environment searches for classes and other resource files.
- In tree component, select the Application Server node.
- Click the JVM Settings tab.
- Select the Path Settings link below the tabs.
- On the JVM Classpath Settings page, you may specify the following:
- In the Environment Classpath checkbox, retain the default selection to ignore the CLASSPATH environment variable. The CLASSPATH environment variable is convenient for basic tutorials in programming, but is not recommended for enterprise environments.
- To view the Application Server’s classpath, examine the read-only contents of the Server Classpath field.
- To insert a JAR file into the beginning of the server’s classpath, enter the full path name of the file in the Classpath Prefix field.
- To add a JAR file to the end of the server’s classpath, enter the full path name of the file in the Classpath Suffix field. For example, you would specify the JAR file of a database driver. See To integrate a JDBC driver.
- In the Native Library Path Prefix and Suffix fields, you may prepend or append entries to the native library path. The native library path is a concatenation of the server’s relative path for its native shared libraries, the standard JRE native library path, the shell environment setting (LD_LIBRARY_PATH on UNIX), and any path specified on the JVM Profiler Settings page.
To configure the JVM options
On the JVM Options page, you may specify the options of the Java application launcher (java tool) that runs the Application Server. The -D options designate properties that are specific to the Application Server.
- In tree component, select the Application Server node.
- Click the JVM Settings tab.
- Select the JVM Options link below the tabs.
- On the JVM Options page, to modify an option you edit the Value field.
- To add an option:
- Click Add JVM Option.
- In the blank row that appears, type the information in the Value field.
- Select the checkbox next to the option.
- Click Delete.
To disable the security manager
Disabling the Application Server’s security manager may improve performance for some types of applications. The J2EE authorization and authentication features will still work even if the security manager has been disabled. You may disable the security manager in a development environment, but you should not disable it in a production environment.
- Go to the JVM Options page of the Admin Console. For instructions, see To configure the JVM options.
- On the JVM Options page, remove this option: -Djava.security.policy
- Click Save.
- Restart the server.
To configure the JVM profiler settings
A profiler tool generates data that is used to analyze performance and identify potential bottlenecks.
- In tree component, select the Application Server node.
- Click the JVM Settings tab.
- Select the Profiler link below the tabs.
- The information that you specify on the JVM Profiler Settings page depends on which profiler product you’re using. For examples and instructions, see the Debugging J2EE Applications chapter of the Application Server Developer’s Guide . (For a link to the guide, see Further Information.
- Click Save.
- Restart the server.
Thread: java library path problem
Extra Foam Sugar Free Ubuntu
java library path problem
I am trying to launch an application. It used to work, after restarting the computer, I have tried to launch the app. this is what I get in the log.
The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.13/jre/lib/i386/client:/usr/lib/jvm/java-6-sun-1.6.0.13/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.13/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
rex@pary:~$ ls -l /usr/lib/jvm
total 12
drwxr-xr-x 7 root root 4096 2009-01-03 23:02 java-1.5.0-gcj-4.3-1.5.0.0
lrwxrwxrwx 1 root root 23 2009-05-06 15:30 java-1.5.0-sun -> java-1.5.0-sun-1.5.0.18
drwxr-xr-x 6 root root 4096 2009-05-06 15:30 java-1.5.0-sun-1.5.0.18
lrwxrwxrwx 1 root root 19 2009-05-06 15:30 java-6-sun -> java-6-sun-1.6.0.13
drwxr-xr-x 8 root root 4096 2009-05-06 15:30 java-6-sun-1.6.0.13
lrwxrwxrwx 1 root root 26 2009-01-03 23:01 java-gcj -> java-1.5.0-gcj-4.3-1.5.0.0under ~/.bashrc on the last line I have
#Java
export JAVA_HOME=/usr/lib/jvm/java-6-sunI dont understand what is going on? Is something corrupt?