0

How do I keep a Windows Tomcat 6 service process from having so many page faults? It has 9M faults. I have plenty of memory and want to keep the entire JVM in RAM and keep it from swapping, to make it faster. The Tomcat service is 8GB and the computer has 24GB RAM. The server is Windows Server 2008 R2 Enterprise.

Here is screenshot of TaskManager: https://i.stack.imgur.com/HMxwb.png

task manager

Chloe
  • 1,164
  • 4
  • 19
  • 35
  • I don't know anything that will prevent this. Maybe you can make a RAM Disk for your swapfile – Marcel Janus Jul 16 '12 at 14:32
  • 1
    Is something actually wrong? Or are you just looking for ways to take flexibility away from the operating system? (Even though it has much more information than you do about how best to use memory.) – David Schwartz Jul 16 '12 at 19:06
  • Yes, I want to take flexibility from the OS. The whole server is dedicated to this web service process. I want it to run faster. I want anything else that needs too much RAM to fail. – Chloe Jul 17 '12 at 13:43
  • @Chloe: Unfortunately, that won't work. Instead of failing, it will cause the server to squeeze its cache, increasing the I/O load on the server and slowing it down. You cannot fix something that is not broken, but you can make it very, very fragile. – David Schwartz Jul 18 '12 at 08:59

1 Answers1

1

If those are mostly soft faults, you probably don't have a problem.

Are they hard or soft faults? What are the perfmon numbers for both? Have you noticed any actual problems, or are you just pre-emptively trying to optimize?

mfinni
  • 36,144
  • 4
  • 53
  • 86
  • Preemptive. I don't know if hard/soft. I have not run perfmon in a while. Yes, there are many problems. http://i.imgur.com/9DyHU.png – Chloe Jul 17 '12 at 13:57
  • As I said : if those are mostly soft faults, *you don't have a problem* , unless you have any other evidence of actual problems. I'm not seeing you present any other problems here. It will take you a couple of minutes to set up perfmon to show the difference between soft and hard faults for this process. Task Manager is a starting point, but it's a fairly blunt instrument. – mfinni Jul 17 '12 at 14:03