Author Topic: nwserver and/or nwnx2 causing 100% CPU useage when executing.  (Read 609 times)

Legacy_Vicar 77

  • Newbie
  • *
  • Posts: 23
  • Karma: +0/-0


               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.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
nwserver and/or nwnx2 causing 100% CPU useage when executing.
« Reply #1 on: March 13, 2013, 02:02:16 am »


               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.
               
               

               
            

Legacy_Vicar 77

  • Newbie
  • *
  • Posts: 23
  • Karma: +0/-0
nwserver and/or nwnx2 causing 100% CPU useage when executing.
« Reply #2 on: March 13, 2013, 10:21:51 pm »


               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...)
               
               

               
            

Legacy_painofdungeoneternal

  • Sr. Member
  • ****
  • Posts: 313
  • Karma: +0/-0
nwserver and/or nwnx2 causing 100% CPU useage when executing.
« Reply #3 on: March 14, 2013, 06:05:26 pm »


               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 ).
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
nwserver and/or nwnx2 causing 100% CPU useage when executing.
« Reply #4 on: March 15, 2013, 11:12:05 pm »


               

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.
               
               

               
            

Legacy_Vicar 77

  • Newbie
  • *
  • Posts: 23
  • Karma: +0/-0
nwserver and/or nwnx2 causing 100% CPU useage when executing.
« Reply #5 on: March 16, 2013, 03:05:52 am »


               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.
               
               

               
            

Legacy_virusman

  • Sr. Member
  • ****
  • Posts: 448
  • Karma: +0/-0
nwserver and/or nwnx2 causing 100% CPU useage when executing.
« Reply #6 on: March 17, 2013, 05:31:14 am »


               That's why Linux is the preferred platform for running nwserver. '<img'>
               
               

               


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