facebook

VisualVM Not Enough Memory Error when taking a Snapshot

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #306918 Reply

    eevans
    Member

    I am experiencing a problem when I am profiling an application server in MyEclipse. I configured the VM so I could profile it and launched the profiler. The application starts up properly and the VisualVM window displays. I selected the “Take a snapshot of collected results” button and received an error popup:

    Not enough memory to save the snapshot

    To avoid this error, increase the -Xmx value in the etc/netbeans.conf file in NetBeans IDE installation.

    Of course I am not running NetBeans so I have no idea where to set the memory flag. Do I set it on my executing application or is there a configuration file in MyEclipse that I should update.

    Any assitance would be greatly appreciated.

    Ernie[/img]

    #306920

    Ernie,
    Can you give some more information?
    1. Can you copy paste your installation details from MyEclipse > Installation Summary > Installation Details?
    2. Are there any errors logged in the log file located at workspace dir > .metadata > .log?
    3. Can you list out the steps in detail to replicate the issue?

    You can try changing the values of -Xmx in the myeclipse.ini file located in your installation directory (~\Genuitec\MyEclipse 8.x Latest\myeclipse.ini). Please make sure the value is not too high. In some cases where the value is too high, it could be silently ignored by the VM.

    Let me know if that helps.

    #306956

    eevans
    Member

    Shalini,

    Here is the information you requested:

    1. Data from Installation Details

    *** Date: Wednesday, March 24, 2010 12:30:36 PM PDT
    ** System properties: OS=WindowsXP
    OS version=5.1.0
    Java version=1.6.0_13

    *** MyEclipse details: MyEclipse Enterprise Workbench
    Version: 7.5
    Build id: 7.5-20090609

    *** Eclipse details: MyEclipse Enterprise Workbench
    Version: 7.5
    Build id: 7.5-20090609

    2. Errors in the Workspace .metadata .log file
    The errors I saw listed did not appear to be directly applicable to the memory error and all occurred before the memory error was encountered in my testing. However, as you requested the information, it is listed below:

    !SESSION 2010-03-24 12:34:30.722 ———————————————–
    eclipse.buildId=unknown
    java.version=1.6.0_13
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86 -clean

    !ENTRY org.eclipse.equinox.p2.core 4 0 2010-03-24 12:35:55.646
    !MESSAGE Provisioning exception
    !STACK 1
    org.eclipse.equinox.internal.provisional.p2.core.ProvisionException: Unable to read repository at file:/C:/Programs/Genuitec/MyEclipse/configuration/org.eclipse.osgi/bundles/500/data/listener_1925729951/.
    at org.eclipse.equinox.internal.provisional.spi.p2.artifact.repository.SimpleArtifactRepositoryFactory.load(Unknown Source)
    at org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.loadRepository(Unknown Source)
    at org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.loadRepository(Unknown Source)
    at org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.loadRepository(Unknown Source)
    at org.eclipse.equinox.internal.provisional.p2.directorywatcher.RepositoryListener.initializeArtifactRepository(Unknown Source)
    at org.eclipse.equinox.internal.provisional.p2.directorywatcher.RepositoryListener.<init>(Unknown Source)
    at org.eclipse.equinox.internal.p2.reconciler.dropins.DropinsRepositoryListener.<init>(Unknown Source)
    at org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.watchDropins(Unknown Source)
    at org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.start(Unknown Source)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:355)
    at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1074)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:616)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:299)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:489)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:211)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:321)
    Caused by: java.io.FileNotFoundException: C:\Programs\Genuitec\MyEclipse\configuration\org.eclipse.osgi\bundles0\data\listener_1925729951\artifacts.xml (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    … 22 more
    !SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 1000 2010-03-24 12:35:55.646
    !MESSAGE Unable to read repository at file:/C:/Programs/Genuitec/MyEclipse/configuration/org.eclipse.osgi/bundles/500/data/listener_1925729951/.
    !STACK 0
    java.io.FileNotFoundException: C:\Programs\Genuitec\MyEclipse\configuration\org.eclipse.osgi\bundles0\data\listener_1925729951\artifacts.xml (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at org.eclipse.equinox.internal.provisional.spi.p2.artifact.repository.SimpleArtifactRepositoryFactory.load(Unknown Source)
    at org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.loadRepository(Unknown Source)
    at org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.loadRepository(Unknown Source)
    at org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.loadRepository(Unknown Source)
    at org.eclipse.equinox.internal.provisional.p2.directorywatcher.RepositoryListener.initializeArtifactRepository(Unknown Source)
    at org.eclipse.equinox.internal.provisional.p2.directorywatcher.RepositoryListener.<init>(Unknown Source)
    at org.eclipse.equinox.internal.p2.reconciler.dropins.DropinsRepositoryListener.<init>(Unknown Source)
    at org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.watchDropins(Unknown Source)
    at org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.start(Unknown Source)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:355)
    at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1074)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:616)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:299)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:489)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:211)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:321)

    !ENTRY org.eclipse.equinox.p2.core 4 0 2010-03-24 12:35:55.677
    !MESSAGE Provisioning exception
    !STACK 1
    org.eclipse.equinox.internal.provisional.p2.core.ProvisionException: Unable to read repository at file:/C:/Programs/Genuitec/MyEclipse/configuration/org.eclipse.osgi/bundles/500/data/listener_1925729951/.
    at org.eclipse.equinox.internal.provisional.spi.p2.artifact.repository.SimpleArtifactRepositoryFactory.load(Unknown Source)
    at org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.loadRepository(Unknown Source)
    at org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.loadRepository(Unknown Source)
    at org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.createRepository(Unknown Source)
    at org.eclipse.equinox.internal.provisional.p2.directorywatcher.RepositoryListener.initializeArtifactRepository(Unknown Source)
    at org.eclipse.equinox.internal.provisional.p2.directorywatcher.RepositoryListener.<init>(Unknown Source)
    at org.eclipse.equinox.internal.p2.reconciler.dropins.DropinsRepositoryListener.<init>(Unknown Source)
    at org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.watchDropins(Unknown Source)
    at org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.start(Unknown Source)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:355)
    at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1074)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:616)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:299)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:489)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:211)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:321)
    Caused by: java.io.FileNotFoundException: C:\Programs\Genuitec\MyEclipse\configuration\org.eclipse.osgi\bundles0\data\listener_1925729951\artifacts.xml (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    … 22 more
    !SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 1000 2010-03-24 12:35:55.677
    !MESSAGE Unable to read repository at file:/C:/Programs/Genuitec/MyEclipse/configuration/org.eclipse.osgi/bundles/500/data/listener_1925729951/.
    !STACK 0
    java.io.FileNotFoundException: C:\Programs\Genuitec\MyEclipse\configuration\org.eclipse.osgi\bundles0\data\listener_1925729951\artifacts.xml (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at org.eclipse.equinox.internal.provisional.spi.p2.artifact.repository.SimpleArtifactRepositoryFactory.load(Unknown Source)
    at org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.loadRepository(Unknown Source)
    at org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.loadRepository(Unknown Source)
    at org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.createRepository(Unknown Source)
    at org.eclipse.equinox.internal.provisional.p2.directorywatcher.RepositoryListener.initializeArtifactRepository(Unknown Source)
    at org.eclipse.equinox.internal.provisional.p2.directorywatcher.RepositoryListener.<init>(Unknown Source)
    at org.eclipse.equinox.internal.p2.reconciler.dropins.DropinsRepositoryListener.<init>(Unknown Source)
    at org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.watchDropins(Unknown Source)
    at org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.start(Unknown Source)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:355)
    at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1074)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:616)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:299)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:489)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:211)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:321)

    !ENTRY org.eclipse.ui.workbench.texteditor 4 0 2010-03-24 12:36:54.493
    !MESSAGE The ‘org.eclipse.wst.jsdt.web.ui.internal.hyperlink.script.JSPJavaHyperlinkDetector’ extension from plug-in ‘org.eclipse.wst.jsdt.web.ui’ to the ‘org.eclipse.ui.workbench.texteditor.hyperlinkDetectors’ extension point will be ignored because it contains invalid attributes.

    !ENTRY org.eclipse.ui.workbench.texteditor 4 0 2010-03-24 12:36:54.493
    !MESSAGE The ‘org.eclipse.wst.jsdt.web.ui.internal.hyperlink.script.event.JSPJavaHyperlinkDetector’ extension from plug-in ‘org.eclipse.wst.jsdt.web.ui’ to the ‘org.eclipse.ui.workbench.texteditor.hyperlinkDetectors’ extension point will be ignored because it contains invalid attributes.

    !ENTRY org.eclipse.jface 2 0 2010-03-24 12:37:17.941
    !MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
    !SUBENTRY 1 org.eclipse.jface 2 0 2010-03-24 12:37:17.941
    !MESSAGE A conflict occurred for CTRL+F9:
    Binding(CTRL+F9,
    ParameterizedCommand(Command(org.eclipse.mylyn.tasks.ui.command.activateTask,Activate Task,
    ,
    Category(org.eclipse.ui.category.navigate,Navigate,null,true),
    ,
    ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.window,,,system)
    Binding(CTRL+F9,
    ParameterizedCommand(Command(RunSQLAction,Run SQL,
    Run SQL,
    Category(org.eclipse.ui.category.edit,Edit,null,true),
    ,
    ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.window,,,system)
    !SUBENTRY 1 org.eclipse.jface 2 0 2010-03-24 12:37:17.941
    !MESSAGE A conflict occurred for SHIFT+DEL:
    Binding(SHIFT+DEL,
    ParameterizedCommand(Command(org.eclipse.datatools.sqltools.result.removeAllInstances,Remove All Visible Results,
    ,
    Category(org.eclipse.datatools.sqltools.result.category,SQL Results View,null,true),
    ,
    ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.window,,,system)
    Binding(SHIFT+DEL,
    ParameterizedCommand(Command(org.eclipse.ui.edit.cut,Cut,
    Cut the selection to the clipboard,
    Category(org.eclipse.ui.category.edit,Edit,null,true),
    org.eclipse.ui.internal.handlers.WidgetMethodHandler@165d389,
    ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.dialogAndWindow,,,system)
    Binding(SHIFT+DEL,
    ParameterizedCommand(Command(org.topcased.modeler.deleteModelObject,Delete From Model,
    Allows the user to delete the selected graph element and its associated model element in a Topcased editor.,
    Category(org.eclipse.ui.category.edit,Edit,null,true),
    ,
    ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.window,,,system)

    !ENTRY org.eclipse.ui 4 4 2010-03-24 12:37:57.345
    !MESSAGE Unable to associate action set with part: org.eclipse.jdt.ui.PackageExplorer. Action set org.codehaus.groovy.eclipse.junit.JUnitActionSet not found.

    !ENTRY org.eclipse.osgi 2 1 2010-03-24 12:46:41.675
    !MESSAGE NLS unused message: DeploymentManagerDialog_status_deployment_Sucessful_overwrite_mode_ in: com.genuitec.eclipse.ast.deploy.core.messages

    !ENTRY org.eclipse.osgi 2 1 2010-03-24 12:46:41.675
    !MESSAGE NLS missing message: DeploymentManagerDialog_status_deployment_Sucessful_overwrite_mode in: com.genuitec.eclipse.ast.deploy.core.messages

    3. Contents of myeclipse.ini file

    -startup
    ../Common\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
    –launcher.library
    ../Common\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731
    -clean
    -configuration
    configuration
    -vm
    C:\Programs\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\client\jvm.dll
    -vmargs
    -Xmx720m
    -XX:MaxPermSize=256m
    -XX:ReservedCodeCacheSize=64m

    Regarding your suggestion about bumping up memory, I don’t think altering the memory will make any difference. When I received the error, the Eclipse process was consuming around 500 MB, well below it’s 720MB maximum. I would have also thought that the VisuaVM was running in it’s own Java process and was not sharing heap with MyEclipse.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: VisualVM Not Enough Memory Error when taking a Snapshot

You must be logged in to post in the forum log in