Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

App is scaling up and not scaling down due to memory not reducing for my app #745

Closed
varun0828 opened this issue Oct 11, 2021 · 2 comments
Closed

Comments

@varun0828
Copy link

varun0828 commented Oct 11, 2021

I have configured autoscaling (using memory rule min:30 max:70) to the spring boot app in PCF and giving the load . Based on the load the memory is increasing and scaling up is working fine .

Issue is when I stopped giving the load to the application and the CPU is reducing ,but the momory is not reducing and scaling down is not working.

I have checked the garbage collector and it is functioning .

What could be the reasons and why the memory is not reducing for my app even though there is no laod on the app ?

Please help me on this .

@cf-gitbot
Copy link
Collaborator

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/179891752

The labels on this github issue will be updated when the story is started.

@silvestre
Copy link
Member

Hi @varun0828,

unfortunately, this is not really something we can help you with, as this is an issue with your app and its runtime.

A hint though: As you are using Java, you would need to either use Java 12+ with G1 GC or switch to the Shenandoah GC on Java 11 for the GC to start returning memory to the OS.

Best regards,
Silvestre

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants