We are using interlude, when we reach 1400~ players the server start to give error "Too many open files". This problem creates several problems like:
- Impossible to log on server (you must wait like 5 minutes to log)
- Impossibile save new crest
- Impossible save new log ( for example Gm logs)
ecc. ecc.
The problem appear ONLY when he reaches 1400~ online (1.500 never touched because players can't log in)
He don't need a fix Code side, but i want to tell if there is a possibility to change some machine values.
We did a lot of changes about machine settings, we are using Linux.
Modified:
Code: Select all
etc/security/limits.conf
Code: Select all
ulimit -n
Code: Select all
/proc/sys/fs/file-max
gameserver start up script:
Code: Select all
nice -n -3 java -server -Xmx3g -Xmn1g -Xss128k -XX:PermSize=128m -XX:+UseThreadPriorities -XX:ParallelGCThreads=2 -Xnoclassgc
Code: Select all
INFO: An exception occurred while acquiring a poolable resource. Will retry.com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. Caused by: java.net.SocketException: Too many open files at java.net.Socket.createImpl(Socket.java:397) at java.net.Socket.<init>(Socket.java:371) at java.net.Socket.<init>(Socket.java:218) at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:254) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:295) ... 19 more
Mage