Issuse facing in windows hybris 5.7

problem:-

if server getting stack memory issues 

Solution:- 

for hybris5.7 we have to install java 1.8 version

open   config/local.properties file and paste below code

#Generated by hybris installer
#Sat Apr 02 20:57:28 IST 2016
mykey=myvalue
\#hac.webroot=/hac
tomcat.generaloptions=-Xmx4096M -XX\:-UseLoopPredicate -XX\:MaxPermSize\=512M -XX\:+HeapDumpOnOutOfMemoryError -ea -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate\=false -Dcom.sun.management.jmxremote.ssl\=false -Dorg.tanukisoftware.wrapper.WrapperManager.mbean\=true -Djava.endorsed.dirs\=”%CATALINA_HOME%/lib/endorsed” -Dcatalina.base\=%CATALINA_BASE% -Dcatalina.home\=%CATALINA_HOME% -Dfile.encoding\=UTF-8 -Dlog4j.configuration\=log4j_init_tomcat.properties -Djava.util.logging.config.file\=jdk_logging.properties -Djava.io.tmpdir\=”${HYBRIS_TEMP_DIR}”
standalone.javaoptions=-Xmx2040M -XX\:MaxPermSize\=512M -XX\:+HeapDumpOnOutOfMemoryError -ea -XX\:-UseLoopPredicate
instore.cockpit.ytestid.enabled=true
yb2bacceleratorstorefront.testIds.enable=true
yacceleratorstorefront.testIds.enable=true
cockpit.default.useTestIds=true
cockpit.ytestid.enabled=true
acceleratorstorefront.testIds.enable=true
backoffice.cockpit.ytestid.enabled=true
build.parallel=true

tomcat.generaloptions=-Xmx1G -XX:MaxPermSize=300M -ea -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=${tomcat.jmx.port} -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dorg.tanukisoftware.wrapper.WrapperManager.mbean=true -Djava.endorsed.dirs=”%CATALINA_HOME%/lib/endorsed” -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA_HOME% -Dfile.encoding=UTF-8 -Dlog4j.configuration=log4j_init_tomcat.properties -Djava.util.logging.config.file=jdk_logging.properties -Djava.io.tmpdir=”${HYBRIS_TEMP_DIR}”

 

or

 
Go to Start → Control Panel → System → Advanced system settings → advanced(tab) → Environment Variables → System Variables → New:

Variable name: _JAVA_OPTIONS
Variable value: -Xmx512M