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

how to increase heap size other than MAVEN_OPS #133

Open
kazukousen opened this issue Sep 15, 2020 · 0 comments
Open

how to increase heap size other than MAVEN_OPS #133

kazukousen opened this issue Sep 15, 2020 · 0 comments

Comments

@kazukousen
Copy link

kazukousen commented Sep 15, 2020

I hope to build kuromoji with neologd on CircleCI.
i try to increase heap size, so set env `MAVEN_OPTS="-Xmx4096m -XX:-UseGCOverheadLimit".
but OutOfMemoryError occurs:

...
[KUROMOJI] 02:40:21:     reading tokeninfo
[WARNING] 
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:297)
    at java.lang.Thread.run (Thread.java:748)
Caused by: java.lang.OutOfMemoryError: Java heap space
...

debugged using -X option, then

env.MAVEN_OPTS= -Xmx4096m -XX:-UseGCOverheadLimit -Xmx512m

-Xmx512m found, so i think -Xmx4096m was overrode by this -Xmx512m.
i can't understand fundamental issue that why has set already -Xmx512m, but i should like to know if there is another way to increase heap size.

can you tell me any idea to avoid this issue? thanks.

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

1 participant