Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Attention: The Community will be in read-only mode on 12/14/2017 from 12:00 am pacific to 11:30 am.

During this time you will only be able to see content. Other interactions such as posting, replying to questions, or marking content as helpful will be disabled for few hours.

We apologize for the inconvenience while we perform important updates to the Community.

New Member

Could not create the Java virtual machine for ANIServer on LMS 3.1

I have just started getting this message "Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine" in ANIserver.log. Anybody any idea what might trigger this on a machine (with 8GB RAM and 12 GB Swap) that had previously been happily running LMS 3.1 (CM 5.1.1)?

13 REPLIES
Cisco Employee

Re: Could not create the Java virtual machine for ANIServer on L

Either your server is starved of memory, or the maximum heap size for ANIServer has been changed. Post the output of pdreg -l ANIServer. What platform is LMS running on?

New Member

Re: Could not create the Java virtual machine for ANIServer on L

The registry has -Xmx1280m and the pdreg output suggests this is unchanged (see attachment). Platform is Windows 2003 Ent SP2. Most recent MS update is 16 July. I tried temporarily halving the parameter to 640m but to no avail. No other applications are running (OpenView NNM is installed but I shut it down while trying to diagnose this problem).

New Member

Re: Could not create the Java virtual machine for ANIServer on L

Even though the server has 8 GB RAM and a huge page file (as reported in Windows About), the CiscoWorks server info says:

"Percent of memory in use: 30

Physical RAM: 2147483647 (2047M)

Free physical RAM: 2147483647 (2047M)

Paging file: 4294967295 (4095M)

Free Paging file: 4294967295 (4095M)

User bytes of address space: 2147352576 (2047M)

Free User Bytes: 2140999680 (2041M)"

Should CiscoWorks see all 8 GB?

New Member

Re: Could not create the Java virtual machine for ANIServer on L

I have done some tinkering. I changed the windows registry Args entry to use 1200m and restarted crmdmgtd. ANIServer stays up and now I seem to have my Campus Manager functions back.

New Member

Re: Could not create the Java virtual machine for ANIServer on L

Hi Dave,

I am having the same problems as you - can you please tell me the reg key you hacked to get it working?

many thanks

rod

Cisco Employee

Re: Could not create the Java virtual machine for ANIServer on L

I have since identified the most likely cause of this problem. A recent update to the Sophos anti-virus suite breaks LMS (as well as many other Java-based applications). The problem is a DLL they preload in all executables to protect against buffer overflows. Unfortunately, the only solution at this time is to uninstall Sophos. It is my understanding Sophos is aware of the issue, but I do not know if they have a better solution yet.

New Member

Re: Could not create the Java virtual machine for ANIServer on L

Thanks Jon,

How will we know when a fix is released?

Rod

Cisco Employee

Re: Could not create the Java virtual machine for ANIServer on L

You won't without contacting Sophos. This is not an LMS issue.

New Member

Re: Could not create the Java virtual machine for ANIServer on L

Jon,

Is this problem down to the msvcrt.dll issue or is it something else ?

Can you provide me with details so I can contact sophos to inform them of the problem.

Rod

Cisco Employee

Re: Could not create the Java virtual machine for ANIServer on L

The problem has to do with a DLL they load into each process to prevent buffer overflows. This thread on the Sun Java forums explains it in a bit more detail. The registry workaround listed here has not been successful for at least one LMS user, however:

http://forums.sun.com/thread.jspa?threadID=5399263

New Member

Re: Could not create the Java virtual machine for ANIServer on L

I removed the data string in the Appinit_DLLs key in the hkey_local_machine\software\microsoft\windowsnt\currentversion\windows path and rebooted the server and problem was resolved.

One thing I did notice that after I rebooted the server topology services didn't work - I checked the ANIServer process and it was shown as started but was busy.

I tried 5 mins later and it worked.

Sophos informed me that 7.6.11 will be released in 2 weeks which will resovle the problem.

Thanks Jon

Rod

Thanks for your help

Cisco Employee

Re: Could not create the Java virtual machine for ANIServer on L

Excellent! I've been waiting for someone to confirm when a fix would be available. As for ANI, it can take a while fir it to initialize since it has to read the topology from the database into memory.

Re: Could not create the Java virtual machine for ANIServer on L

a customer who was seeing this behaviour with ANIUServer just confirmed that Sophos published the latest version (7.6.11) last night. All the servers configured for auto-updating Sophos Antivirus software did get this release automatically. After stopping and starting LMS the problem with ANIServer not starting has gone.

672
Views
20
Helpful
13
Replies
CreatePlease to create content