Discussion Locked

Not Using All Memory, Too Much Paging

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hey,

Here is my situation:

Server is NT 4.0 with 120 GBs in the box and a DAS with an additional 360 GB. We are running teo main processes besides the NT services:

Oracle 8i
Our own J++ Multithreaded (usually 4) Application

The box has2GB of physical memory but when we run this is what happens with memory (information form the Task Manager):

Oracle (225MB Physical, 750MB virtual, ~0 page fault delta)
J++ App (220MB Physical, 320 Virtual, >1000 page fault delta)

So, our Java App is page faulting roughly 1000 times per second which has got to be a significant performance problem. Why is NT allocating so little physical memory to both of these and using more virtual memory than physical which is causing these outrageouspage faults?

Any ideas, please help!!!

1 reply

by timthetoolman

Hi,

What you are likely seeing is relatively normal functioning for an application that uses and frees objects at a rapid rate. I'd say your J++ application does just that.

The page faulting you're seeing is not likely to be from the disk - Your disk subsystem would be pretty damned busy doing 1000 IOs/sec

Its likely that your application allocates some memory, uses it and finishes with it. Then NT moves that memory to the free list until another request for memory comes in. It'll be got from the free list - not from disk.

This "soft" paging happens when your application reaches a certain working set size - it wont get any bigger. Its very fast and not a huge load on the system - although 1000 per second is starting to get up there!

Read the following two articles to help you understand how memory management works under NT.

http://www.win2000mag.com/Articles/Index.cfm?ArticleID=595

http://www.rsinc.com/services/output.cfm?tip_id=1677

(remove spaces from the above URL)

Of course, I could be wrong and your machine is grinding its disks to dust... but I dont think so.

Cheers,
Tim.

This discussion is closed to new replies.