[cf-dev] Fwd: Scailing Java Applications

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[cf-dev] Fwd: Scailing Java Applications

Christopher Frost

When deploying a Java application to Cloud Foundry the Java memory settings for the application are decided based on the configured memory weighting during staging. This means that, unlike other apps, if the application is scaled to give it more memory it needs to be restaged it to get updated Java memory settings. This has now been improved with an improved memory calculator written by Steve Powell[2]. The Memory Calculator[1] will be run during every application start to ensure the application gets up-to-date memory settings, its output is shown during staging.

-----> Downloading Open JDK Like Memory Calculator 1.1.1_RELEASE from https://download.run.pivotal.io/memory-calculator/trusty/x86_64/memory-calculator-1.1.1_RELEASE (found in cache)
       Memory Settings: -XX:MaxMetaspaceSize=64M -XX:MetaspaceSize=64M -Xss995K -Xmx382293K -Xms382293K


Then scaling the application to double the memory will result in new memory settings without having to restage the application.

cf scale my-application -m 1G


-Xmx768M -Xms768M -XX:MaxMetaspaceSize=104857K -XX:MetaspaceSize=104857K -Xss1M



This new feature is currently available on the master branch of the buildpack [3] and will be released in due course.

--
Christopher Frost - Pivotal UK

_______________________________________________
cf-dev mailing list
[hidden email]
https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
Reply | Threaded
Open this post in threaded view
|

Re: [cf-dev] Fwd: Scailing Java Applications

James Bayer
thanks steve! that's a nice addition to the java buildpack. i think all java developers have experienced the pain of managing memory explicitly with -X and -XX args at one point or another. having built-in sane defaults that auto-adjust is hopefully one less thing java developers have to worry about when using the java buildpack.

On Tue, May 12, 2015 at 8:12 AM, Christopher Frost <[hidden email]> wrote:

When deploying a Java application to Cloud Foundry the Java memory settings for the application are decided based on the configured memory weighting during staging. This means that, unlike other apps, if the application is scaled to give it more memory it needs to be restaged it to get updated Java memory settings. This has now been improved with an improved memory calculator written by Steve Powell[2]. The Memory Calculator[1] will be run during every application start to ensure the application gets up-to-date memory settings, its output is shown during staging.

-----> Downloading Open JDK Like Memory Calculator 1.1.1_RELEASE from https://download.run.pivotal.io/memory-calculator/trusty/x86_64/memory-calculator-1.1.1_RELEASE (found in cache)
       Memory Settings: -XX:MaxMetaspaceSize=64M -XX:MetaspaceSize=64M -Xss995K -Xmx382293K -Xms382293K


Then scaling the application to double the memory will result in new memory settings without having to restage the application.

cf scale my-application -m 1G


-Xmx768M -Xms768M -XX:MaxMetaspaceSize=104857K -XX:MetaspaceSize=104857K -Xss1M



This new feature is currently available on the master branch of the buildpack [3] and will be released in due course.

--
Christopher Frost - Pivotal UK

_______________________________________________
cf-dev mailing list
[hidden email]
https://lists.cloudfoundry.org/mailman/listinfo/cf-dev




--
Thank you,

James Bayer

_______________________________________________
cf-dev mailing list
[hidden email]
https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
Reply | Threaded
Open this post in threaded view
|

Re: [cf-dev] Fwd: Scailing Java Applications

Mike Youngstrom
In reply to this post by Christopher Frost
Love this feature!  Thanks JBP team!

Now I have to try really hard to find something in the JBP to complain about. :)

Mike

On Tue, May 12, 2015 at 9:12 AM, Christopher Frost <[hidden email]> wrote:

When deploying a Java application to Cloud Foundry the Java memory settings for the application are decided based on the configured memory weighting during staging. This means that, unlike other apps, if the application is scaled to give it more memory it needs to be restaged it to get updated Java memory settings. This has now been improved with an improved memory calculator written by Steve Powell[2]. The Memory Calculator[1] will be run during every application start to ensure the application gets up-to-date memory settings, its output is shown during staging.

-----> Downloading Open JDK Like Memory Calculator 1.1.1_RELEASE from https://download.run.pivotal.io/memory-calculator/trusty/x86_64/memory-calculator-1.1.1_RELEASE (found in cache)
       Memory Settings: -XX:MaxMetaspaceSize=64M -XX:MetaspaceSize=64M -Xss995K -Xmx382293K -Xms382293K


Then scaling the application to double the memory will result in new memory settings without having to restage the application.

cf scale my-application -m 1G


-Xmx768M -Xms768M -XX:MaxMetaspaceSize=104857K -XX:MetaspaceSize=104857K -Xss1M



This new feature is currently available on the master branch of the buildpack [3] and will be released in due course.

--
Christopher Frost - Pivotal UK

_______________________________________________
cf-dev mailing list
[hidden email]
https://lists.cloudfoundry.org/mailman/listinfo/cf-dev



_______________________________________________
cf-dev mailing list
[hidden email]
https://lists.cloudfoundry.org/mailman/listinfo/cf-dev