title: Lotus Domino Agent Manager JVM Memory
body: <p>I'm running a scheduled agent which interrogates a particular directory on the the file system to find image files and change their dimensions if they're above a certain file size.</p>
  
  <p>I'm using the Java image library called ImgScalr: <a href="http://www.thebuzzmedia.com/software/imgscalr-java-image-scaling-library/" rel="nofollow">http://www.thebuzzmedia.com/software/imgscalr-java-image-scaling-library/</a></p>
  
  <p>The problem I'm having is that on some images the process falls over with a java.lang.OutOfMemory error. The images which it falls over on are relatively large, usually between 5MB and 6MB.</p>
  
  <p>The server it's running on has 8GB of RAM which I thought would be ok.</p>
  
  <p>My question is does the Agent Manager JVM utilise the same memory settings as the HTTP task i.e. HTTPJVMMaxHeapSize?</p>
  
  <p>I've increased that setting to 1792MB but that doesn't seem to have an impact when the image reduction agent runs. Note, increasing the config to anything above that figure makes the HTTP JVM throw the following error on startup: <strong>HTTP JVM: JVMJ9VM015W Initialization error for library j9gc24(2): Failed to instantiate heap; 2G requested)</strong></p>
  
  <p>If the Agent Manager doesn't use the same setting as the HTTP JVM then does it have it's own setting we can change to increase the available memory in order to stop getting the OutOfMemory errors?</p>