• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Running a java program overnight

 
luc comeau
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys im sorry f this is the wrong place to put this post but i couldnt find a better category then this.

I just had a question. I have a java program that takes sevral days to complete, due to the mass amount of data i have to generate with it. It seems that when i am at work running the program while doing other things on my pc, the program actually runs faster, then if i were to leave it overnight.

I figured it might slow down when my computer goes to screen saver, or when it finally goes to hibernate, so i shut both of those off and all the power saver options, and this didnt seem to help. Am i crazy for thinking it should run faster overnight when the java program has full use of the cpu? Is there anythig i can do to make it run faster at night when the pc isint being used at all?

-Luc
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The screensaver might be an issue, but are you sure it will have full use of cpu after toggling the screensaver off?
Sometimes systems are configured to run some tasks over night like indexing the filesystem for faster finding.

And might it be it is slowing down after a while?
Did you look at memory-consumption in the morning, especially usage of swap?
 
Reid M. Pinchback
Ranch Hand
Posts: 775
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another thing that could be running overnight, particularly in a corporate network, is a full virus scan; Norton can take forever. A backup system would be another candidate.
 
John Dunn
slicker
Ranch Hand
Posts: 1108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a corporate environment, databases will also get maintained at night. I learned that the hard way, myself.
 
luc comeau
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Stefan Wagner:
The screensaver might be an issue, but are you sure it will have full use of cpu after toggling the screensaver off?
Sometimes systems are configured to run some tasks over night like indexing the filesystem for faster finding.

And might it be it is slowing down after a while?
Did you look at memory-consumption in the morning, especially usage of swap?


also the virus scan thing

These are good points i forgot to even think of.Yes the virus scan was runing at 3am , im guessing that would substantially slow things down.
As for the swapping, i didnt check that out. A process is running alot that notice called scan32.exe
no idea what that is, i can venture to guess, but im not really sure, its using 50-70% as we speak and has been for the better part of the morning, yet i see now alerts of any scanning going on.The only thing was windows update ran automatically today but thats over, so i dont know why that would still be it.
I figured there wouldnt be a whole lot of swapping going on since i gave the process high priorirty (windows) overnight, to eliminate that idea...well to some extent.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic