Summary: Helpful recommendations for: tuning the infrastructure on which GigaSpaces XAP is running, boosting its performance, and improving its scalability.
Check your Infrastructure FirstNo matter what kind of optimization you perform, you cannot ignore your infrastructure. Therefore, you must verify that you have the following:
Max Processes and File Descriptors/Handlers LimitLinuxLinux has a Max Processes per user, as well as the limit of file descriptors allowed (which relates to processes, files, sockets and threads). This feature allows you to control the number of processes an existing user on the server may be authorized to have. To improve performance and stability, you must set the limit of processes for the super-user root to be at least 8192, but note that 32k, or even unlimited is also adequate: ulimit -u unlimited
How do I configure the File Descriptors on Linux?In /etc/system file, the descriptors hard limit should be set (8192), and the file descriptors soft limit should be increased from 1024 to 8192 as shown below: set rlim_fd_max=8192 set rlim_fd_cur=8192 Edit /etc/system with root access and reboot the server. After reboot, please, run the following in the application account: To change the default value, modify the /etc/security/limits.conf file.
WindowsWindows 2003 has no parameter dealing directly with the number of file handles, it is not explicitly limited, but file handles allocations take part of heap shared section which is relatively small (default 512KB). Heap being exhausted might lead to the application failure. How do I configure the File Handlers on Windows?To increase it run regedit - HKEY_LOCAL_MACHINE->SYSTEM->CurrentControlSet->Control->Session Manager->Subsystems:
TCP tuningLinuxTCP_KEEPALIVE_TIMEDescription: Determines how often to send TCP keepalive packets to keep an connection alive if it is currently unused echo 1 > /proc/sys/net/ipv4/tcp_keepalive_time Default value: 7200 seconds (2 hours) ![]() TCP_KEEPALIVE_INTERVALDescription: Determines the wait time between isAlive interval probes. echo 1 > /proc/sys/net/ipv4/tcp_keepalive_intvl Default value: 75 seconds ![]() TCP_KEEPALIVE_PROBESDescription*: Determines the number of probes before timing out. echo 5 > /proc/sys/net/ipv4/tcp_keepalive_probes Default value: 9 ![]()
Connection backlogDescription: Determines the maximum number of packets, queued on the input side, when the interface receives packets faster than kernel can process them. echo 3000 > /proc/sys/net/core/netdev_max_backlog Default value: 300 ![]() Description: Determines the maximum number of pending connection. echo 3000 > /proc/sys/net/core/somaxconn Default value: 128 ![]() WindowsTo update the TCP parameters on widows run regedit. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
|
![]() |
GigaSpaces.com - Legal Notice - 3rd Party Licenses - Site Map - API Docs - Forum - Downloads - Blog - White Papers - Contact Tech Writing - Gen. by Atlassian Confluence |