-
Notifications
You must be signed in to change notification settings - Fork 132
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
mistserv.conf is not loaded #167
Comments
Hey there! Could you share a copy of your config, so that we can analyse what's wrong? |
Thank you for your reply.
I sent the configuration file to your email.
|
BTW shouldn't the config get pretty printed on exit? |
Yes, it would be nice to merge to development branch too. |
A small addition, perhaps a significant one. |
Is there any news on this subject? |
Hey there, We received the config and had a look. The amount of streams configured most likely would've hit the file descriptor limit (usually 1024) of your system. As we keep a file open per stream configured (to work towards Windows compatibility, Windows shared memory requires keeping everything in shared memory "active" or it would be deleted) You can test or work around this problem by raising the limit applied to MistServer. If you're using MistServer as a service you could raise this by adding the following to the mistserver.service file: If you don't want to edit the service script immediately you can test it by hand. First turn off the mistserver service then: Seeing this issue we'll most likely make adjustments for the Linux builds to not keep all these files open as it's not needed. By the way, while there's no problem in having 1k+ streams configured, you might want to look into the wildcard system, which allows you to do this in a much more simple way. |
Thank you for your prompt reply. |
Hello, guys.
Faced with this situation. I have CentOS 9 server running (8 GB Memory / 25 GB Disk). The size of the configuration file has reached 123 KB, the server can't read it on startup. I deleted the config file, the server started instantly. I returned the config file, increased the RAM size to 16GB, didn't help. I have a suspicion that the issue here is not the amount of memory, but the fact that the entire configuration is written in one line, now it has reached such a size that the script, which reads config line by line, can not do it. Advice on what to do? Perhaps the approach to reading config should be reconsidered.
The text was updated successfully, but these errors were encountered: