CPU Usage when acceptNewConnections
CPU Usage when acceptNewConnections
Hi there,
visual vm shows me that most cpu usage (>50%) happens in it.gotoandplay.smartfoxserver.SmartFoxServer.acceptNewConnections().
Can you tell me what happens here behind the scenes? Or does it enclude further methods calls.
Best regards,
visual vm shows me that most cpu usage (>50%) happens in it.gotoandplay.smartfoxserver.SmartFoxServer.acceptNewConnections().
Can you tell me what happens here behind the scenes? Or does it enclude further methods calls.
Best regards,
You could try increasing your SysHandlerThreads by 1 as I think the 'connection' stuff is handled by the System Handler. More info via http://www.smartfoxserver.com/docs/docP ... Safety.htm
Smartfox's forum is my daily newspaper.
Visual VM sorts all methods by their resource usage. The fact that one particular method is taking 50% does not present any particular problem, unless you are investigating a performance issue.
Also these values vary a lot depending on what the server is doing at the moment of the measurement.
It's like saying that, under your OS (maybe Win or MacOS), Skype is taking 2% of the CPU on a total of 4% of busy CPU. That's 50% of the CPU, but it's not a problem.
Also these values vary a lot depending on what the server is doing at the moment of the measurement.
It's like saying that, under your OS (maybe Win or MacOS), Skype is taking 2% of the CPU on a total of 4% of busy CPU. That's 50% of the CPU, but it's not a problem.
That's the process that "welcomes" the users that are connecting. There's not much to be optimized there.
Are you sure that's the process that takes more CPU than anything else? I find this very weird. How long did you monitor the JVM? What's the load on the server?
Is this a dedicated machine or does it run more services?( Http, DBase etc... )
Are you sure that's the process that takes more CPU than anything else? I find this very weird. How long did you monitor the JVM? What's the load on the server?
Is this a dedicated machine or does it run more services?( Http, DBase etc... )
It would help a lot if instead of providing small bits of information you could explain clearly what the problem is. At this point I am a little lost at understanding what we are looking for.
If your CPU uses less than 10% of it's overall capacity it is clear that it's not not running out of resources.
Please take a look at our posting rules for reporting issues:
http://forums.smartfoxserver.com/viewtopic.php?t=3307
If your CPU uses less than 10% of it's overall capacity it is clear that it's not not running out of resources.
Please take a look at our posting rules for reporting issues:
http://forums.smartfoxserver.com/viewtopic.php?t=3307
