Error :
java.lang.OutOfMemoryError: PermGen space
Stopping spark context.
Exception in thread "main"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "main"
Solution :
Give the following to the VM options.
Go to Run => Edit Configuration => Add the following line (I am giving 1GB, maxPermSize 512MB)
-Xmx1024m -XX:MaxPermSize=512m -Xms512m
Thats it !!!
No comments:
Post a Comment