Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memory consumption #153

Closed
sklevenz opened this issue Feb 26, 2016 · 5 comments
Closed

memory consumption #153

sklevenz opened this issue Feb 26, 2016 · 5 comments

Comments

@sklevenz
Copy link

Hi,

I am deploying the admin ui using this bosh release [1]. This release is using monit to watch admin ui process. Monit restarts the process after memory consumption threshold is hit. In [2] is a graph showing that a configured 1G limit is reached every 10 minutes which results in a restart by monit. At around 09:10 the limit was increased to 2G and process becomes stable now. But current memory consumption goes into range of 2 G.

I am not sure if this is maybe a memory leak. But with the increase of the Cloud Foundry usage (more users, orgs, spaces, apps ...) memory goes up.

To keep it short ;) is there a plan to get better scale for the admin ui?

Regards,
Stephan

[1] https://github.com/cloudfoundry-community/admin-ui-boshrelease
[2] http://www.uppic.com/uploads/14564773131.png

@yatzek-zz
Copy link

I am seeing the same problem, memory usage goes above 1G quite quickly and gets restarted.

@rboykin
Copy link
Contributor

rboykin commented Mar 21, 2016

No current plans to change the admin ui in this regard. I suggest you get https://github.com/cloudfoundry-community/admin-ui-boshrelease to increase its memory allocation.

@rboykin rboykin closed this as completed Mar 21, 2016
@yatzek-zz
Copy link

Hi,

Increasing memory allocation does not help - I did some debugging and it appears to be a problem
with how view models are being constructed.
In my cf installation the biggest problem seem to be events - 7 days of events is about 30k records, every refresh builds up quickly exceeding 1GB of RAM. Please have a look at the attached heap analysis:

heap_analyzed.txt

you will see that there are plenty of objects allocated in lib/sequel/adapters/postgres.rb:669 and in events_view_model.rb in multiple places. Have a look at the "Duplicate Strings" section as well.

@yatzek-zz
Copy link

@sklevenz - I am guessing it is because of large number of events in your installation, try changing event_days in your config to 1.

@sklevenz
Copy link
Author

Thanks for the event tip. I will try this out.

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

No branches or pull requests

3 participants