Code42 server configuration recommendations
Who is this article for?
Instructor, no.
Incydr Professional, Enterprise, Gov F2, and Horizon, no.
Incydr Basic, Advanced, and Gov F1, no.
CrashPlan Cloud, no.
Retired product plans, yes.
CrashPlan for Small Business, no.
Overview
Code42 recommends several adjustments to improve the performance of the Code42 server software and system.
For general system requirements for a Code42 server, refer to Code42 server requirements.
Affects
Code42 servers
Considerations
- This procedure requires access to your Code42 server. For environments with managed appliances, please contact your Customer Success Manager (CSM) to engage the Code42 Professional Services team.
- This procedure requires you to restart the Code42 server.
- These adjustments can affect other software.
Need help?
For further assistance, contact your Customer Success Manager (CSM) to engage the Code42 Professional Services team.
Before you begin
Determine how much RAM is installed in the server that hosts your Code42 server.
Linux Code42 server adjustments
Step 1: Increase the Java memory limit
Code42 recommends increasing the Java heap space up to one-half of the total RAM available on the Code42 server. Increasing the Java heap space beyond that value can cause performance problems.
As an example, if your server has 16 GB of RAM available, then the maximum heap space you should use is 8 GB.
- Navigate to the Code42 server main install directory:
/opt/proserver - Open .proserverrc in a plain text editor.
If your server does not currently have a .proserverrc file, you may create one. In that case, make sure that the permissions on .proserverrc allow the Code42 server to read the file. - Locate the line beginning with the parameter
JAVA_MEM_ARGS
.
If you created a .proserverrc file, you must create the line shown in the next step. - Change the
-Xmx
argument of theJAVA_MEM_ARGS
line to reflect the desired heap space. For example:- This argument would set the Java heap space to 4 GB:
JAVA_MEM_ARGS="-Xss256k -Xms256m -Xmx4096m"
- This argument would set the Java heap space to 8 GB:
JAVA_MEM_ARGS="-Xss256k -Xms256m -Xmx8192m"
- This argument would set the Java heap space to 4 GB:
- Save the changes to the file.
Step 2: Increase the open files limit for the Code42 server service
- Stop the Code42 server service by running the following command:
sudo /opt/proserver/bin/proserver stop
- Open the /opt/proserver/.proserverrc file in a plain text editor.
If this file does not already exist, create it. - Add the following lines to the file:
# Increase open files limit ulimit -n 409600
- Save the file.
- Run the following command to start the Code42 server service.
sudo /opt/proserver/bin/proserver start
Step 3: Increase virtual memory maximum limit
- Open the /etc/sysctl.conf configuration file in a plain text editor.
- Add the following line to set the virtual memory maximum limit to 409600:
vm.max_map_count=409600
- Save the file.
- Apply the new kernel settings immediately by running the command
sysctl -p /etc/sysctl.conf
or restarting the host server.
Step 4: Reduce performance overhead of storage statistics
Step 5: Increase server workload capacity
Windows Code42 server adjustment
Step 1: Increase the Java memory limit
Code42 recommends increasing the Java heap space up to one-half of the total RAM available on the Code42 server. Increasing the Java heap space beyond that value can cause performance problems.
As an example, if your server has 16 GB of RAM available, then the maximum heap space you should use is 8 GB.
Note that the changes in this method will not persist if you reinstall the Code42 server, and you will need to repeat the modification after a reinstallation.
- Navigate to the Code42 server main install directory:
C:\Program Files\CrashPlan PROe Server - Open the CrashPlanPROServer.ini file in a plain text editor.
- Locate the line beginning with the parameter
Virtual Machine Parameters
. - Change the
-Xmx
argument of theVirtual Machine Parameters
line to reflect the desired heap space. For example:- This argument would set the Java heap space to 4 GB:
Virtual Machine Parameters=-Xrs -Xmx4096m -Xss128K -Dapp=CPServer -Ddrools.compiler=JANINO
- This argument would set the Java heap space to 8 GB:
Virtual Machine Parameters=-Xrs -Xmx8192m -Xss128K -Dapp=CPServer -Ddrools.compiler=JANINO
- This argument would set the Java heap space to 4 GB:
- Save the changes to the file.
- Use the Windows Services manager to restart the Code42 server service.