• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

page file usage increase caused by java applocation

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Recently I developed a small java application for a customer. This application receives some emails and sends out some SMS every hour. Now this customer is complaining that the server slows down after a few days the applicaion is installed. I tried to use Jprobe to diagnose the problem. Jprobe shows that after a few days the application consumes the same amount of memory and the number of objects in the application remains almost the same. However, for every passing day the page file usage shown in windows task manager seems to be increased by 100MB.
I have to admin I am not very familiar with operating system and JVM. What kind of situation can cause this kind of "memory leak"?
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can use the -Xmx JVM parameter to define the maximum amount of memory available to the JVM heap. Even if your application has a memory leak, it can't go past this value - you would see OutOfMemoryErrors. So I'd check what else your client has running on that box; its probably not your Java app that is causing this.
 
Baijun Jiang
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have found that after a few days the fault pages generated by anti virus softwares become excessive. MSMPENG.exe (Windows Defender) and RtvScan.exe (Norton) have 500M/200M fault pages respectively. I guess it is interrelated to my heavy I/O usage of my Java program. Does anyone encounter this problem before? How should I solve/diagnose it?
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic