Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To many files open #26

Closed
vvzar opened this issue Aug 26, 2016 · 8 comments
Closed

To many files open #26

vvzar opened this issue Aug 26, 2016 · 8 comments

Comments

@vvzar
Copy link

vvzar commented Aug 26, 2016

What can I do to resolve this errors? (Very quickly nonstop repeating at console screen.)
It happens after some normal uptime.

12:08:03 [ALERT] java.io.FileNotFoundException: /mcpe/nemisys/server.log (Too many open files)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.(FileOutputStream.java:213)
at org.itxtech.nemisys.utils.MainLogger.run(MainLogger.java:172)

12:08:03 [ALERT] java.io.FileNotFoundException: /mcpe/nemisys/server.log (Too many open files)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.(FileOutputStream.java:213)
at org.itxtech.nemisys.utils.MainLogger.run(MainLogger.java:172)

I set ulimit -n 4096, hope this help.

@ghost
Copy link

ghost commented Aug 26, 2016

Use : java -Xms512M -Xmx1024M -jar nemisys.jar

@vvzar
Copy link
Author

vvzar commented Aug 28, 2016

Use : java -Xms512M -Xmx1024M -jar nemisys.jar
it doesnt help...
ulimit -n 4096 does not help too...

@vvzar
Copy link
Author

vvzar commented Aug 30, 2016

I have tried -xms2048 -xmx4096 - uptime increased up to 2 days, but after all I get same error.
Looks like somewhere file descriptors leak, or whatever

    at org.itxtech.nemisys.utils.MainLogger.run(MainLogger.java:172)

09:57:24 [ALERT] java.io.IOException: Too many open files
at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:422)
at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:250)
at org.itxtech.nemisys.network.synlib.SessionManager.tick(SessionManager.java:109)
at org.itxtech.nemisys.network.synlib.SessionManager.tickProcessor(SessionManager.java:42)
at org.itxtech.nemisys.network.synlib.SessionManager.run(SessionManager.java:32)
at org.itxtech.nemisys.network.synlib.SynapseServer.run(SynapseServer.java:128)

09:57:24 [ALERT] java.io.FileNotFoundException: /mcpe/nemisys/server.log (Too many open files)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.(FileOutputStream.java:213)
at org.itxtech.nemisys.utils.MainLogger.run(MainLogger.java:172)

09:57:24 [ALERT] java.io.FileNotFoundException: /mcpe/nemisys/server.log (Too many open files)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.(FileOutputStream.java:213)
at org.itxtech.nemisys.utils.MainLogger.run(MainLogger.java:172)

09:57:24 [ALERT] java.io.FileNotFoundException: /mcpe/nemisys/server.log (Too many open files)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.(FileOutputStream.java:213)
at org.itxtech.nemisys.utils.MainLogger.run(MainLogger.java:172)

09:57:24 [ALERT] java.io.FileNotFoundException: /mcpe/nemisys/server.log (Too many open files)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.(FileOutputStream.java:213)
at org.itxtech.nemisys.utils.MainLogger.run(MainLogger.java:172)

09:57:24 [ALERT] java.io.FileNotFoundException: /mcpe/nemisys/server.log (Too many open files)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.(FileOutputStream.java:213)
at org.itxtech.nemisys.utils.MainLogger.run(MainLogger.java:172)

@SleepSpace9
Copy link
Contributor

I do a daily restart of Nemisys with a log rotate, so the logfile never gets to big. I don't have such an issue.

@vvzar
Copy link
Author

vvzar commented Aug 30, 2016

I do a daily restart of Nemisys
by this action, you dont let nemisys to get to critical condition, but issue is out there :)

@tarik02
Copy link

tarik02 commented Aug 30, 2016

I'm also got this error:

18:25:33 [ALERT] java.io.FileNotFoundException: ***/server.log (Too many open files)
        at java.io.FileOutputStream.open0(Native Method)
        at java.io.FileOutputStream.open(FileOutputStream.java:270)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
        at org.itxtech.nemisys.utils.MainLogger.run(MainLogger.java:172)

@dktapps
Copy link

dktapps commented Aug 31, 2016

Please head over to #37 and test a fix.

tarik02 added a commit to tarik02/Nemisys that referenced this issue Sep 5, 2016
@XFuryMCPE
Copy link
Contributor

@PeratX PeratX closed this as completed Jul 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants