Sitelet https://web.archive.org/web/20201122222448/https://github.com/freeacs/freeacs/issues/287
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

[all] java.lang.OutOfMemoryError: Metaspace ---->WebService #287

Open
penaivanalejandro opened this issue Feb 8, 2019 · 10 comments
Open

[all] java.lang.OutOfMemoryError: Metaspace ---->WebService #287

penaivanalejandro opened this issue Feb 8, 2019 · 10 comments

Comments

@penaivanalejandro
Copy link
Member

@penaivanalejandro penaivanalejandro commented Feb 8, 2019

Hello @jarlah , I'm doing tests with the webservice and today I wake up with this error:
error_webservice

Do you know if there is a fix to increase the metaspace for this module?

@jarlah
Copy link
Member

@jarlah jarlah commented Feb 8, 2019

i suppose you have some ram available. Just increase metaspacesize to 100 or 200 or something, like -XX:MaxMetaspaceSize=200m````. and if you have the memory, set -Xmx=1024m```. It has been running for 2 weeks i see, not good, but the memory parameters are adjustable for your liking. Its in application.ini under /opt for the module

@jarlah
Copy link
Member

@jarlah jarlah commented Feb 8, 2019

fix it, let it run for another to or three weeks untouched, and we can take it from there. But i will take a deeper look at this problem, by adding best practice jvm params for memory management.

@penaivanalejandro
Copy link
Member Author

@penaivanalejandro penaivanalejandro commented Feb 8, 2019

Thanks @jarlah
Ready, I'm going to try these 3 weeks ...
Excellent support, thank you very much.

webservice memory

@jarlah
Copy link
Member

@jarlah jarlah commented Feb 12, 2019

Ill leave this issue open since i need to fix the default config in webservice module and possibly others.

Or anyone else can do it. Really.

@jarlah jarlah changed the title java.lang.OutOfMemoryError: Metaspace ---->WebService [all] java.lang.OutOfMemoryError: Metaspace ---->WebService Feb 12, 2019
@pingwiniasty
Copy link
Contributor

@pingwiniasty pingwiniasty commented Feb 13, 2019

1GB of memory and ~256M to MetaSpace?

@pingwiniasty
Copy link
Contributor

@pingwiniasty pingwiniasty commented Mar 19, 2019

@penaivanalejandro Can you tell me, are you have some troubles with webservice? I ran it with ~20 CPEs ang 2GB of memory. After some time, webservice java process uses 100% of CPU

@pingwiniasty pingwiniasty reopened this Mar 19, 2019
@pingwiniasty
Copy link
Contributor

@pingwiniasty pingwiniasty commented Mar 19, 2019 •

It seems is a problem with trying to fetch CPE which not exist in ACS.

@penaivanalejandro
Copy link
Member Author

@penaivanalejandro penaivanalejandro commented Mar 19, 2019 •

Hi @pingwiniasty I have 8Gb of memory.... this is the status on the machine...

I have this CPE today:
Equipos

systemctl status to webservice:
systemctl

Hardware:
Hardware

top

And I do a test to get a Unit:

test_webservice

test2

@jarlah
Copy link
Member

@jarlah jarlah commented Mar 19, 2019

Might not be related. But.

I have a hunch. The dbi way of doing things is very impractical. Each user must have its own DBI instance which leads to many long living DBI instances.

We need to figure out how to do multi user on singleton dbi.

@jarlah
Copy link
Member

@jarlah jarlah commented Mar 19, 2019

This multi user singleton pattern should also be considered for new web implementation.

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

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.