maven


Keep getting java.lang.OutOfMemoryError: PermGen space error


I am required to start few servers locally. I keep getting the "java.lang.OutOfMemoryError: PermGen space" error every now and then. I tried to increase my JVM size by the following command.
export MAVEN_OPTS="-Xmx128m -XX:MaxPermSize=512m"
After running the above command, I see that the MAVEN_OPTS is correctly updated.
$ echo $MAVEN_OPTS
-Xmx128m -XX:MaxPermSize=512m
However, after a few minutes from starting the servers I get an out of memory error.
$ echo $MAVEN_OPTS
-Xmx512m:wq
Can someone please tell me what causes the properties to change and what does the :wq come from?
wq is the vim command for save and exit.
Looks like your jvm options got corrupted with that. Can you remove that and retry.
Increasing -XX:MaxPermSize is the correct thing to do here.

Related Links

Maven Error “cant find or load main class…”
I run a maven project with the package goal. I defined the main class in the manifest but I still cannot have the jar file run in command prompt. Why?
Why including bom doesn't work?
runtime deployment of decision table in KIE
java.lang.IllegalArgumentException: At least one JPA metamodel must be present
Defining suppressions filter in checkstyle.xml vs pom.xml - maven-checkstyle plugin
Missing artifact org.glassfish.jersey.media:jaxrs-media-moxy:jar:2.16 in Maven project in Eclipse ,what to do?
Sonatype Nexus 3 stuck on OnLine - Ready To Connect status for proxies
Jenkins get last test result when maven building fail
How can I make a goal optional in maven?
Cucumber Rerun failed features : Inconsistent filters: [#test1, #test, 23, 36]. Only one type [line,name,tag] can be used at once
Creating an external Maven packaging POM
How to Integrate BIRT Chart Engine 4.6.0 into maven project
Maven dependency plugin downloads POM instead of tar.gz
Maven get from Wrong repository
Artifactory Dependency Declaration does not match maven-metadata.xml or pom

Categories

HOME
variables
atom-editor
mfc
hp-exstream
lodash
twitter-bootstrap-4
jgroups
v8
gps
umd
blueprintjs
paradox
applepay
elasticsearch-hadoop
python-unittest
node-pdfkit
spring-xd
numeral.js
export-to-csv
serilog
nhibernate-envers
kryo
functional-testing
dcevm
microsoft-r
angular2-aot
sqlcipher
opennlp
fish
info.plist
opentype
dbclient
google-cloud-nl
nouislider
stormpath
directx-10
.net-4.0
winrt-xaml-toolkit
protovis
host
occlusion
service-discovery
vapor
squib
sas-visual-analytics
total-commander
scorm
logfiles
paxos
carrot
worker-thread
kbuild
sybase-asa
knpmenubundle
capacity
lync-client-sdk
mediaelement
specrun
dstu2-fhir
mikroc
thrust
plottable.js
holder.js
markojs
nsviewcontroller
make-install
php-internals
asp.net5
photobucket
execute
marching-cubes
ruby-2.2
django-unittest
feedback
sframe
android-listview
0xdbe
php-ci
graph-drawing
cisco-ios
pretty-print
asp.net-dynamic-data
wordpress-theme-customize
device-manager
zend-route
comexception
picturefill
terminal-services
runtime.exec
easy-install
qt-faststart
sqlperformance
html-editor
coderush
datawindow
automount
tridion-worldserver
errai
regsvr32
uiviewanimation-curve
pendrive
fireworks
joyent
disclosure
subviews
modelstate
castle-monorail
webkit.net
sef
yagni
3gp

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App