File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Query on Virtual Memory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Query on Virtual Memory" Watch "Query on Virtual Memory" New topic

Query on Virtual Memory

Bikash Paul
Ranch Hand

Joined: Dec 04, 2001
Posts: 342
Iam facing with one problem I can upload file upto 40mb by running my swing interface(java -Xmx256m ActionDemo4).If I select above 40mb size of file then it giving me Error on Dos-Prompt(java.lang.OutOfMemory).Now I increase jvm memory by
(-Xmx540m)then my swing Interface run perfectly but when I select file size above 40mb then my machine hanged(Then It is not giving me Error on Dos-prompt) and giving me Error by system[your system running on low virtual machine.Plz close some application or add additional paging file or increase size of paging file of virtual memory]. My machine spesification:-
Operating system:-winNT4.0(Service Pack4.0)
I try to configure my machine like that:-
Settings-Control Panel-System-Performance-VirtualMemory:-I changed in
1.Paging File size for selected Drive:-
Drive C:
Space Available: 834MB
Initial Size: 256MB
Maximum Size: 306MB
Drive D:
Space Available: 7870MB
Initial Size: 14MB
Maximum Size: 14MB
2.Total paging file for all Drives:-
Minimum Allocated: 2MB
Recommened: 267MB
Currently Allocated: 270MB
3.Registry Size:-
Current Registry Size: 13MB
Maximum Registry size: 60MB
But I couldn't slove my Problem.Plz Guide me How I can slove my problem.Excepting Quick Reply.
With Best Regards

I agree. Here's the link:
subject: Query on Virtual Memory
It's not a secret anymore!