Use
NOTCode:Thread.activeCount()
for a quick fix for it.Code:PlayerHandler.getPlayerCount()
|
Somehow Emulous player counter counts all connects. So if there are made 300 connections it will show playercount 300, altough there maybe online only like 3-4 players.
Use
NOTCode:Thread.activeCount()
for a quick fix for it.Code:PlayerHandler.getPlayerCount()
If Java runs out of memory, the following error occurs:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
This can have two reasons:
* Your Java application has a memory leak. There are tools like YourKit Java Profiler that help you to identify such leaks.
* Your Java application really needs a lot of memory (more than 128 MB by default!). In this case the Java heap size can be increased using the following runtime parameters:
java -Xms<initial heap size> -Xmx<maximum heap size>
Defaults are:
java -Xms32m -Xmx128m
You can set this either in the Java Control Panel or on the command line, depending on the environment you run your application.
I didn't write that, but that will help you
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |