Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-26697

Possible memory leak during Loading projects job when using cluster with lots of projects

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.30.x
    • 4.12.0.Final
    • openshift
    • None
    • devex #173 Oct 2019, devex #175 Nov 2019, devex #176 Nov/Dec 2019
    • 8
    • Hide

      1. Install crstudio
      2. You can import some projects into workspace(e.g. openshift repo)
      3. Create connection to CRC/OpenShift 4 instance, I have used kubeadmin as user
      4. Create new project
      5. Open New Openshift Application wizard and close it
      6. Repeat step 5

      Show
      1. Install crstudio 2. You can import some projects into workspace(e.g. openshift repo) 3. Create connection to CRC/OpenShift 4 instance, I have used kubeadmin as user 4. Create new project 5. Open New Openshift Application wizard and close it 6. Repeat step 5

      Exception in error log:

      eclipse.buildId=12.12.0.GA-v20190626-0604-B4591
      java.version=11.0.2
      java.vendor=Oracle Corporation
      BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_GB
      Framework arguments:  -product com.jboss.devstudio.core.product -product com.jboss.devstudio.core.product -keyring /Users/jkopriva/.eclipse_keyring
      Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product com.jboss.devstudio.core.product -data file:/Users/jkopriva/workspace_B4591_3/ -product com.jboss.devstudio.core.product -keyring /Users/jkopriva/.eclipse_keyring
      
      org.eclipse.core.jobs
      Error
      Wed Jun 26 14:36:11 CEST 2019
      An internal error occurred during: "Loading projects...".
      
      java.lang.OutOfMemoryError: Java heap space
      	at org.jboss.dmr.JSONParser.yyParse(JSONParser.java:877)
      	at org.jboss.dmr.ModelNode.fromJSONString(ModelNode.java:1472)
      	at com.openshift.internal.restclient.ResourceFactory.create(ResourceFactory.java:100)
      	at com.openshift.internal.restclient.ResourceFactory.createInstanceFrom(ResourceFactory.java:149)
      	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:304)
      	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:275)
      	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:264)
      	at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:171)
      	at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:160)
      	at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:151)
      	at com.openshift.internal.restclient.capability.resources.ProjectTemplateListCapability.getCommonTemplates(ProjectTemplateListCapability.java:53)
      	at org.jboss.tools.openshift.internal.ui.wizard.newapp.ApplicationSourceTreeItems$1.visit(ApplicationSourceTreeItems.java:121)
      	at org.jboss.tools.openshift.internal.ui.wizard.newapp.ApplicationSourceTreeItems$1.visit(ApplicationSourceTreeItems.java:1)
      	at com.openshift.internal.restclient.model.KubernetesResource.accept(KubernetesResource.java:94)
      	at org.jboss.tools.openshift.internal.ui.wizard.newapp.ApplicationSourceTreeItems.loadTemplates(ApplicationSourceTreeItems.java:113)
      	at org.jboss.tools.openshift.internal.ui.wizard.newapp.ApplicationSourceTreeItems.createChildren(ApplicationSourceTreeItems.java:61)
      	at org.jboss.tools.openshift.internal.ui.treeitem.ObservableTreeItem.loadChildren(ObservableTreeItem.java:69)
      	at org.jboss.tools.openshift.internal.ui.treeitem.ObservableTreeItem.load(ObservableTreeItem.java:56)
      	at org.jboss.tools.openshift.internal.ui.treeitem.ObservableTreeItem.load(ObservableTreeItem.java:59)
      	at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.loadResources(NewApplicationWizardModel.java:247)
      	at org.jboss.tools.openshift.internal.ui.wizard.common.AbstractProjectPage$3.doRun(AbstractProjectPage.java:255)
      	at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:37)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
      
      
      

              adietish@redhat.com André Dietisheim
              jkopriva@redhat.com Josef Kopriva
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: