facebook

ME 2015 and server JVM arguments

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

    Michael Stacey
    Participant

    2014 allowed you to add arguments to the JVM that ran the servers. It seems like that feature is gone in 2015. How do you increase permgen, for example, in the JVM that is running the web server in ME 2015?

    #353695 Reply

    support-swapna
    Moderator

    Stacey,

    You can the add the JVM arguments to the server in MyEclipse 2015 as detailed in this thread.

    Let us know if you see any issues.

    #395214 Reply

    chandan-kumar
    Participant

    Is there any way to programmatically set (using Java) the values for VM Arguments and adding Jars in Classpath tab in MyEclipse 2015. Earlier (Till MyEclipse 2014) we used Java program and imported eclipse provided jar/libraries which help us to set the JVM arguments (VM Arguments and Jars in Paths). Now as this option is not available in MyEclipse 2015 (JDK and PATH section for Weblogic Configuration) each time manually we are adding them.

    #395312 Reply

    support-tony
    Keymaster

    chandan-kumar,

    I’m not clear on how you set up the JVM arguments up to MyEclipse 2014, or how you used a Java program to help in this. Is it possible to give more details, so that we can see how you might be able to do something similar in 2015? Once you make changes in the launch configuration, and Apply them, you shouldn’t need to make the changes again.

    #395515 Reply

    chandan-kumar
    Participant

    Hi,

    We imported eclipse provided jars/libraries as shown below:

    import org.eclipse.core.runtime.IPath;
    import org.eclipse.core.runtime.IStatus;
    import org.eclipse.core.runtime.Path;
    import org.eclipse.core.runtime.Status;
    import org.eclipse.jdt.launching.IRuntimeClasspathEntry;
    import org.eclipse.jdt.launching.IVMInstall;
    import org.eclipse.jdt.launching.IVMInstallType;
    import org.eclipse.jdt.launching.JavaRuntime;
    import org.eclipse.jdt.launching.LibraryLocation;

    Inside class we have a method whose snippet is mentioned below:

    public static IRuntimeClasspathEntry[] getServerClasspathEntries(String path, Properties props)

    IRuntimeClasspathEntry[] classpathEntries = null;

    // Add the Java VM system libraries to the classpath.
    classpathEntries = getVMBootStrapLibsEntries();

    [Setting the properties]
    .
    .
    IRuntimeClasspathEntry entry = getJarEntry(toolsJar, IRuntimeClasspathEntry.USER_CLASSES);
    classpathEntries = mergeEntries(classpathEntries, new IRuntimeClasspathEntry[]{entry});
    .
    .

    Till MyEclipse 2014 we were using this code and it works fine for us. But now it is not working after upgrading to MyEclipse2015.

    #395617 Reply

    support-tony
    Keymaster

    chandon-kumar,

    I’ve asked the developers to take a look at this. However, this isn’t a supported feature so I’m not sure we will be able to help.

    #395708 Reply

    support-piotr
    Participant

    chandon-kumar,

    Launch configuration setup has changed in MyEclipse 2015, e.g. the id of configuration type has changed. However, you should be able to modify it programmatically without problems as all the configuration options (classpath, JVM args, etc.) are stored in standard Java Launch Config fields (IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS, IJavaLaunchConfigurationConstants.ATTR_CLASSPATH, …). Please note that Launch configurations are created per configured server connector.

    If you need more detailed directions, I would have to have a look at your source code.

    Best regards,
    Piotr Tomiak

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: ME 2015 and server JVM arguments

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