Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to configure memory argument and server mode for Liferay in Tomacat server?

    • 0
    • 1
    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 720
    Comment on it

    To increase memory and change server mode you just need to write below arguments in setenv.sh file.

    Example:

    path: /bundles/tomcat-7.0.42/bin/setenv.sh

    CATALINA_OPTS="$CATALINA_OPTS -Dfile.encoding=UTF8 -Djava.net.preferIPv4Stack=true  -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false -Duser.$Duser.timezone=GMT -Xmx1024m -XX:MaxPermSize=1024m -Dexternal-properties=portal-developer.properties"
    

    in the above example -Xmx1024m -XX:MaxPermSize=1024m are memory arguments and -Dexternal-properties=portal-developer.properties is Server mode in which I have set Server mode to Development.

    Hope this will help you :)

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: