Thursday, January 9, 2014

WSO2 Carbon 4.2.0 based products general fine tuning parameters.


Application server and API store and publisher


 

catalina-server.xml


maxThreads="750"
minSpareThreads="150"
disableUploadTimeout="false"
enableLookups="false"
connectionUploadTimeout="120000"
maxKeepAliveRequests="600"
acceptCount="600"
API Key Manager and Identity server

catalina-server.xml

maxThreads="750"
minSpareThreads="150"
disableUploadTimeout="false"
enableLookups="false"
connectionUploadTimeout="120000"
maxKeepAliveRequests="600"
acceptCount="600"

api-manager.xml

<EnableGatewayKeyCache>true</EnableGatewayKeyCache>
API gateway if nhhtp transport enabled.

/repository/conf/nhttp.properties
http.socket.timeout=60000
snd_t_core=200
snd_t_max=250
snd_io_threads=16
lst_t_core=200
lst_t_max=250
lst_io_threads=16

api-manager.xml

<EnableGatewayKeyCache>true</EnableGatewayKeyCache>
STORE/PUBLISHER

Axis2Client.xml
<parameter name="defaultMaxConnPerHost">1000</parameter>
<parameter name="maxTotalConnections">30000</parameter>


Elastic Load Balancer

passthru-http.properties
http.socket.timeout=120000
worker_pool_size_core=400
worker_pool_size_max=500
io_buffer_size=16384

All servers

masterdatasource.properties
<maxActive>250</maxActive>
<testOnBorrow>false</testOnBorrow>
<validationInterval>120000</validationInterval>

wso2server.sh
-Xms2048m -Xmx2048m -XX:MaxPermSize=1024m

Open Files Limit
Set open files limit to 200000 by editing
/etc/sysctl.conf
sudo sysctl -p


No comments:

Post a Comment