Tomcat默認沒有配置Transaction,須要在/Conf/Context.xml配置web
1
|
<Transaction factory=
"org.objectweb.jotm.UserTransactionFactory"
jotm.timeout=
"60"
/>
|
若是加載的程序較大,避免內存不夠,須要在/bin/Catalina.bat中,spa
行 rem ----- Execute The Requested Command --------------------------------------- code
下面加上server
1
|
set
JAVA_OPTS=%JAVA_OPTS% -server -XX:MaxPermSize=512m
|