npcx icon indicating copy to clipboard operation
npcx copied to clipboard

Extreme CPU usage and lags

Open pschichtel opened this issue 15 years ago • 5 comments

Your plugin causes heavy CPU usage and lags on my server, althougth there are no NPCs. No exceptions or other errors in the log.

The server: AMD Phenom II X6 1055T @ 2.8 GHz and 8 GB RAM on Debian 5.

The Bukkit version: It's build from source on 05.04. (don't know the exact commit)

pschichtel avatar Apr 07 '11 14:04 pschichtel

and what does it do on your local pc?

mixxit avatar Apr 07 '11 14:04 mixxit

i did not test that, but my local system is almost the same

pschichtel avatar Apr 07 '11 15:04 pschichtel

This is most unusual as i'm not experiencing this locally or on my server and no complaints from others, is there anything unusual about your setup? Perhaps dependencies?

mixxit avatar Apr 07 '11 16:04 mixxit

no nothing special

pschichtel avatar Apr 07 '11 18:04 pschichtel

top - 21:17:35 up 13 min, 1 user, load average: 0.51, 0.51, 0.36

Tasks: 71 total, 1 running, 70 sleeping, 0 stopped, 0 zombie

Cpu(s): 3.0%us, 0.1%sy, 0.0%ni, 94.8%id, 0.0%wa, 0.0%hi, 0.0%si, 2.1%st

Mem: 2051448k total, 881228k used, 1170220k free, 11948k buffers

Swap: 1048572k total, 0k used, 1048572k free, 327560k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND

3854 xxxx 20 0 1980m 287m 9852 S 12.6 14.3 0:50.50 java

2304 xxxx 20 0 491m 146m 13m S 0.3 7.3 0:25.18 exe

3211 xxxx 20 0 12772 976 744 R 0.3 0.0 0:00.68 top

This is the performance on 2gb ram with 130 spawngroups and around 100 unique npcs

mixxit avatar Apr 07 '11 20:04 mixxit