Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Virgo Service commands are not working(I am getting errors when I try to use the list or examine for vsh:service)
icon4.gif   Virgo Service commands are not working [message #1199793] Thu, 21 November 2013 01:11 Go to next message
Andrew Soloninka is currently offline Andrew SoloninkaFriend
Messages: 6
Registered: November 2013
Junior Member
Whenever I am in the Virgo Server editor in the Eclipse IDE, I can not run the vsh:service commands(either list or examine)in the Server console without getting a Java OutOfMemory error.

I have tried increasing the heap memory to the following

-XX:PermSize=1024m -Xms512sm -Xmx4096m

But I'm still getting the OutOfMemory error.

I have tried telneting to the osgi command line. List works occasionally but examine never works.

Re: Virgo Service commands are not working [message #1200267 is a reply to message #1199793] Thu, 21 November 2013 06:44 Go to previous messageGo to next message
Hristo Iliev is currently offline Hristo IlievFriend
Messages: 156
Registered: May 2010
Location: Sofia, Bulgaria
Senior Member

Which Virgo version do you use?
Re: Virgo Service commands are not working [message #1201016 is a reply to message #1200267] Thu, 21 November 2013 14:32 Go to previous messageGo to next message
Andrew Soloninka is currently offline Andrew SoloninkaFriend
Messages: 6
Registered: November 2013
Junior Member
I am using 3.6.2
Re: Virgo Service commands are not working [message #1201292 is a reply to message #1201016] Thu, 21 November 2013 17:18 Go to previous messageGo to next message
Hristo Iliev is currently offline Hristo IlievFriend
Messages: 156
Registered: May 2010
Location: Sofia, Bulgaria
Senior Member

I guess you have your application running in Virgo, because I cannot reproduce the OOM using plain VST 3.6.2.


    What can be done is:
  1. Check if the problem is reproducible with standalone Virgo (to rule out Eclipse Tooling)
  2. Remove your application and test vsh:services again (to check if memory settings are correct)


In general the problem may be caused by low memory settings, so can you please post the parameters used to start Virgo here.

[Updated on: Thu, 21 November 2013 17:19]

Report message to a moderator

Re: Virgo Service commands are not working [message #1201481 is a reply to message #1201292] Thu, 21 November 2013 19:26 Go to previous messageGo to next message
Andrew Soloninka is currently offline Andrew SoloninkaFriend
Messages: 6
Registered: November 2013
Junior Member
I stripped out all plans and ran plain VST. The vsh:service commands list and examine both worked.

My memory settings were as follows: -XX:PermSize=768m -Xms512sm -Xmx2048m

I added back a plan that only added CXF-dosgi functionality and I got the OOM for list and examine vsh:service commands

I increased the memory settings are as follows: -XX:PermSize=768m -Xms512sm -Xmx4096

I still got OOM for the list and examine vsh:service commands
Re: Virgo Service commands are not working [message #1201489 is a reply to message #1201481] Thu, 21 November 2013 19:30 Go to previous messageGo to next message
Andrew Soloninka is currently offline Andrew SoloninkaFriend
Messages: 6
Registered: November 2013
Junior Member
NOTE: I'm trying to debug an application that includes 2 plans. One is the main application plan and the other is the cxf-dosgi plan.
Re: Virgo Service commands are not working [message #1201540 is a reply to message #1201489] Thu, 21 November 2013 20:03 Go to previous messageGo to next message
Hristo Iliev is currently offline Hristo IlievFriend
Messages: 156
Registered: May 2010
Location: Sofia, Bulgaria
Senior Member

Can you post the exact message of the OOM exception?

You can investigate the OOM via the Eclipse Memory Analyzer [1]. You'll need the heap dump generated by Virgo as input.

If you are new to MAT, you can go to the Leak Suspects one-click view [2] or if this is not enough go through the Basic Tutorial [3]

[1] http://www.eclipse.org/mat/
[2] http://memoryanalyzer.blogspot.com/2008/05/automated-heap-dump-analysis-finding.html
[3] http://help.eclipse.org/kepler/topic/org.eclipse.mat.ui.help/gettingstarted/basictutorial.html
Re: Virgo Service commands are not working [message #1201790 is a reply to message #1201540] Thu, 21 November 2013 22:53 Go to previous messageGo to next message
Andrew Soloninka is currently offline Andrew SoloninkaFriend
Messages: 6
Registered: November 2013
Junior Member
java.lang.OutOfMemoryError: Java heap space
Dumping heap to C:\virgo/serviceability/heap_dump.hprof ...
Heap dump file created [313372696 bytes in 6.936 secs]
Re: Virgo Service commands are not working [message #1206869 is a reply to message #1201790] Sun, 24 November 2013 09:00 Go to previous messageGo to next message
Hristo Iliev is currently offline Hristo IlievFriend
Messages: 156
Registered: May 2010
Location: Sofia, Bulgaria
Senior Member

It seems that there are too many objects (heap) and the problem is not caused by the number of classes (perm) or native threads (native memory).

If you have difficulties analysing the leak, please provide the heap dump so I can have a look. Have in mind however that it may contain sensitive data like login credentials and URLs that were present in the memory.
Re: Virgo Service commands are not working [message #1220675 is a reply to message #1206869] Fri, 13 December 2013 01:51 Go to previous message
oumi casha is currently offline oumi cashaFriend
Messages: 8
Registered: December 2013
Location: china
Junior Member

I stripped out all plans and ran plain VST.
My memory settings were as follows: -Xms512sm -Xmx1024m
I increased the memory settings are as follows: -XX:PermSize=768m -Xms512sm -Xmx4096
Previous Topic:Virgo as windows service
Next Topic:virgo-kernel-3.6.2.RELEASE as windows service
Goto Forum:
  


Current Time: Wed Apr 24 17:36:14 GMT 2024

Powered by FUDForum. Page generated in 0.03524 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top