Steps to use the Headless Mode in Linux

Steps to use the Headless Mode in Linux

Steps to fix the issue Headless Mode and Jfree Chart in Linux:

1. Stop NetFlow Analyzer or OpManager Service

2. Navigate to NetFlow_Home/conf  or OpManager_Home/conf folder and open file
"wrapper.conf" in a editor.

4. Look for the last  un-commented wrapper.java.additional and Add the following line below the above line ,
wrapper.java.additional.x+1=-Djava.awt.headless=true
Eg:

wrapper.java.additional.16=-Djava.awt.headless=true
5. Save the file.

6.  Navigate to NetFlow_Home/bin or OpManager_Home/bin folder and open file named "run.sh" in a editor.

7. Look for the the below line:

JAVA_OPTS="-Xms512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError -Dcatalina.home=$SERVER_HOME -DStartedAsCmdPrompt=true -Dserver.home=$SERVER_HOME -Dlog.dir=$SERVER_HOME -Ddb.home=$DB_HOME -Duser.language=en -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=$SERVER_HOME/conf/logging.properties -Duser.home=$SERVER_HOME/logs/"

Add the Parameter -Djava.awt.headless=true at the end as shown below and save:


JAVA_OPTS="-Xms512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError -Dcatalina.home=$SERVER_HOME -DStartedAsCmdPrompt=true -Dserver.home=$SERVER_HOME -Dlog.dir=$SERVER_HOME -Ddb.home=$DB_HOME -Duser.language=en -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=$SERVER_HOME/conf/logging.properties -Duser.home=$SERVER_HOME/logs/ -Djava.awt.headless=true"

6. Please execute the ./linkAsService.sh which is present under the <NetFlow_Home>/bin or OpManager_Home/bin directory.

7. Start NetFlow Analyzer or OpManager service and check on the issue.



          • Related Articles

          • Steps to resolve to "Too many open files" in Linux

            Please follow the below steps to resolve the issue with  "Too many open files" issue in Linux. Follow below given steps: 1. Stop the NetFlow Analyzer service. 2. Please visit the link given below for the steps to increase the open files in the Linux ...
          • NFA Password Reset steps for Mysql database till version 10250

            Kindly follow steps as given below to reset the password. Please note that the NetFlow Analyzer Server is running before doing the below steps. 1. Open a command prompt 2. Go to the <NETFLOW_HOME>\mysql\bin directory 3. Type For Windows    :   mysql ...
          • Firewall Analyzer Mysql to Pgsql migration steps.

            Stop the Firewall Analyzer Service. Take the backup or a VM snapshot of ManageEngine\Firewall folder. Download the correct zip files based on your OS(32/64bit) from the below link and extract it under <Firewall Analyzer Home>. ...
          • Steps to take Configuration Backup and Restore Configuration Backup

            Follow the below steps to take the configuration backup: 1. Stop the NetFlow Analyzer Service. 2. Open a command prompt as administrator and navigate to NetFlow_Home/troubleshooting/ and execute backupConfig.sh for Linux and backupConfig.bat for ...
          • Upgrade steps from build 12.4 or above to 12.5

            Note:   NetFlow Analyzer version 12.5 has postgres upgrade from 9.2 .4 to 10.10 hence there is additional care need to be taken while performing upgrade.   Disk Space in the NetFlow Analyzer installed drive should be 1.25 times free with respect to ...