space.java.lang.OutOfMemoryError: java heap space

Answered Question
Oct 30th, 2009
User Badges:

I have a problem when i want to export the inventory via cwcli.

cwcli export inventory -u xxxx -p xxxx -m xxxx -device

Running LMS 3.2 on Solaris 10.

Actualy, there are 2000 devices.

I get this error (cli.log):

Java heap spacejava.lang.OutOfMemoryError: Java heap space

What do you think about ? Thanks for suggestions. Regards herve

Correct Answer by Joe Clarke about 7 years 8 months ago

This parameter controls the maximum amount of heap space the JVM will use. It has a default, and that's 512 MB. Large installations will require more memory.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Joe Clarke Fri, 10/30/2009 - 11:01
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

You can increase the allowed heap size by editing /opt/CSCOpx/MDc/tomcat/webapps/rme/WEB-INF/classes/com/cisco/nm/rmeng/cli/framework/heap.properties. Increase VM_HEAP_MAX from 512 to 1024.

hlichiere Fri, 10/30/2009 - 14:19
User Badges:

Thanks a lot for your help. This problem is solved. For my information, could you tell me what's this parameter and why there isn't the default. Regards

Correct Answer
Joe Clarke Fri, 10/30/2009 - 14:27
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

This parameter controls the maximum amount of heap space the JVM will use. It has a default, and that's 512 MB. Large installations will require more memory.

Patricia Oliveira Tue, 09/02/2014 - 13:56
User Badges:

Hi Joseph,

 

I'm having the same problem with CWLMS 4.0.1. But I didn't find this file heap.properties in the

/opt/CSCOpx/MDc/tomcat/webapps/rme/WEB-INF/classes/com/cisco/nm/rmeng/cli/framework/

Do you know where I customize this parameter in that version?

Thanks,

 

Patricia Oliveira

Joe Clarke Wed, 09/03/2014 - 23:11
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

There was a typo.  The directory is /opt/CSCOpx/MDC/tomcat/webapps/rme/WEB-INF/classes/com/cisco/nm/rmeng/cli/framework/ .  This file should exist in LMS 4.0.1, thought that version is end of life.  You should really upgrade to 4.2.5.

Actions

This Discussion