Hello.
I have a strange problem.
SFS is loading my CPU too hard after few days of working. So I compelled to restart SFS every few days.
Also I observed that when load become too high, I can't view Zone Browser through AdminTool: I can view all others parts of AdminTool (Ban Manager, Logs, Extensios, Config etc.) but when I try to open Zone Browser connection with server breaks immediatly...
We have no some errors in logs. I don't know what it is. But at monents of high loads I can see in linux-terminal thought "top" command that mysql-java bundle is always in top
___________
MySQL version: 5.0.67
SFS Pro 1.6.6
java version "1.6.0" (Java(TM) SE Runtime Environment)
Loading CPU after few days of SFS uptime
Loading CPU after few days of SFS uptime
Don't worry, be happy!
Johannes
If the mysql-java process is taking all the CPU then you should check your DBManager configuration and the number of connections/queries to your database.
Maybe you have some heavy DB activity going on which is taking too many resources or so.
corwin
The same behavior including the mysql-java process?
If the mysql-java process is taking all the CPU then you should check your DBManager configuration and the number of connections/queries to your database.
Maybe you have some heavy DB activity going on which is taking too many resources or so.
corwin
The same behavior including the mysql-java process?
I have mysql connections, but I think the problem it is not related. I have hours with much more users, making more queries, but the server is ok. The problem always occurs at least some days after server start and when cpu go high once, it does not go back ok unless restart.
Also I have all my inserts and updates in separate threads, and really have not so many selects.
P.S. Yesterday, when the problem happened again I saw that the memory of the sfs process constantly goes high and than lowers for two-three seconds. I guess that cpu is high because of garbage collection?
Also I have all my inserts and updates in separate threads, and really have not so many selects.
P.S. Yesterday, when the problem happened again I saw that the memory of the sfs process constantly goes high and than lowers for two-three seconds. I guess that cpu is high because of garbage collection?
What is not clear is if it's the SmartFox process that takes all the CPU or the mysql-java.
Using a simple tool like jconsole ( http://java.sun.com/developer/technical ... nsole.html ) or the more powerful VisualVM ( https://visualvm.dev.java.net/ ) you can see exactly what is going on with the garbage collection.
Maybe you just need to fine tune the JVM memory, or maybe there's a memory leak. Difficult to say with just a few informations.
Another cause for performance issues is the number of threads in the JVM, if you are creating custom threads in your code make sure to take a look at their number.
Using a simple tool like jconsole ( http://java.sun.com/developer/technical ... nsole.html ) or the more powerful VisualVM ( https://visualvm.dev.java.net/ ) you can see exactly what is going on with the garbage collection.
Maybe you just need to fine tune the JVM memory, or maybe there's a memory leak. Difficult to say with just a few informations.
Another cause for performance issues is the number of threads in the JVM, if you are creating custom threads in your code make sure to take a look at their number.
Return to “Server Side Extension Development”
Who is online
Users browsing this forum: No registered users and 38 guests