Aller au contenu

Photo

nwserver and/or nwnx2 causing 100% CPU useage when executing.


  • Veuillez vous connecter pour répondre
6 réponses à ce sujet

#1
Vicar 77

Vicar 77
  • Members
  • 13 messages
Our server has 3GB of ram, and a 3Ghz processor, and yet we have been experiencing the server completely locking up when nwserver executes. We are running Windows server 2003 sp2, although considering 2008. Any ideas or advice would be welcomed. We have also been having a number of other performance issues recently.

#2
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
I have never seen the game not use 100% of the cpu. My guess is that if you game is locking up it has nothing to do with the what you are showing for the cpu usage.

The only advice I can give would be to make sure that the server is running on only one core, hopefully a Core that nothing else is running on. If you still have problems after that try profiling you scripts. If it still locks up try logging the scripts to see if it is hanning up on one of them.

Both options can be set in the nwnplayer.ini under Script Options. Use only one of them at a time.

#3
Vicar 77

Vicar 77
  • Members
  • 13 messages
Thanks Lightfoot8. I assume you mean by setting Client CPU Affinity=-1? In the nwnplayer.ini?

I will look at logging the scripts too, however I had made some changes yesterday that seem to have helped substantially (such as reducing the virutal memory useage, fixing registry errors, ect...)

#4
painofdungeoneternal

painofdungeoneternal
  • Members
  • 1 799 messages
xp_profiler i think is for NWN1 as well, if you can use that, it can tell you which scripts are consuming everything. ( perhaps the AI which always seems to be an issue )

I would review everything though, perhaps cajole a senior member of another established PW to take a look at your module and give advice, it's very hard to know what is going on without a lot more in depth detail. I know there are folks in the NWN2 irc channel which run NWN1 PW's, or work on NWNx plugins which might be able to lend guidance after asking questions. ( it's a sticky topic in the general NWN2 on how to join, it's not really for either game, and most of those there know as much about NWN1 as about NWN2 and try to help all comers help themselves ).

#5
Shadooow

Shadooow
  • Members
  • 4 470 messages

Vicar 77 wrote...

Our server has 3GB of ram, and a 3Ghz processor, and yet we have been experiencing the server completely locking up when nwserver executes. We are running Windows server 2003 sp2, although considering 2008. Any ideas or advice would be welcomed. We have also been having a number of other performance issues recently.

My current server hoster had same problem. Windows, not sure which OS though. Bizardly it fixed itself with some random update I was doing in order to try to solve it. Sorry I know this isnt much helpful.

I checked NWN Omnibus, it seems like a quite commont issue, try search 100% CPU in OMNIBUS yourself, meybe you find answer, and if so dont forget to report us what it was.

#6
Vicar 77

Vicar 77
  • Members
  • 13 messages
Well to be honest I am not exactly sure what fixed the problem. I made a number of changes, and not sure which one(s) helped. My prime suspect is disabling windows reporting. After doing this, we noticed an immediate change. My secondary suspect would be changing was reducing the amount of virtual memory (since our memory from RAM is more than suficient, and virtual memory is slower.) However I made a number of other changes too, so I can't be sure.

#7
virusman

virusman
  • Members
  • 282 messages
That's why Linux is the preferred platform for running nwserver. :)

Modifié par virusman, 17 mars 2013 - 05:32 .