本帖最后由 永洪tech-Maggie 于 2017-1-23 12:04 编辑
解决方法:
1.替换jdk (1)修改setclasspath.bat中的jdk路径(linux只需第一步) (2)将原jre/bin/YonghongBI.exe文件拷贝到新jre/bin下 2.替换tomcat (1)将Yonghong/tomcat中的内容全部删除 (2)将新tomcat文件下的内容全部复制到Yonghong/tomcat中 (3)修改tomcat/conf下的server.xml,改启动端口,以及加一句配置 :<Context path="" docBase="../bi" reloadable="true"> </Context> (1)在catalina.bat中加入内存配置的一句 - set JAVA_OPTS=-Xmx5054m -Xms5054m -Xmn1200m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:ParallelGCThreads=4 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:MaxGCPauseMillis=6000 -XX:GCTimeRatio=19 -XX:+UseCMSCompactAtFullCollection -XX:CMSFullGCsBeforeCompaction=1 -XX:CMSInitiatingOccupancyFraction=68 -XX:SurvivorRatio=1 -XX:+CMSClassUnloadingEnabled -XX:-CMSParallelRemarkEnabled -XX:SoftRefLRUPolicyMSPerMB=0 -XX:+PrintHeapAtGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps
复制代码 (2)在setclasspath.bat中加入两句配置,jdk,jre路径以及驱动路径, - set CLASSPATH=
- %CLASSPATH%;%JAVA_HOME%\lib\tools.jar;..\lib\servlet-api.jar;..\..\Yonghong\product.jar;..\..\Yonghong\product-swf.jar;..\..\Yonghong\thirds.jar;..\..\example\Statistics.jar;..\..\example\baoye.jar;..\..\example\Guangdian.jar;..\..\example\Jinrong.jar;..\..\example\Meitan.jar;..\..\example\SampleData.jar;..\..\Yonghong\jdbcDriver\db2-jdbc-9.7\db2jcc.jar;..\..\Yonghong\jdbcDriver\db2-jdbc-9.7\db2jcc_license_cu.jar;..\..\Yonghong\jdbcDriver\derby\derby.jar;..\..\Yonghong\jdbcDriver\derby\derbyclient.jar;..\..\Yonghong\jdbcDriver\mysql-jdbc-5.1\mysql-connector-java-5.1.16-bin.jar;..\..\Yonghong\jdbcDriver\oracle-jdbc-10\ojdbc14.jar;..\..\Yonghong\jdbcDriver\postgresql\postgresql-9.1-902.jdbc4.jar;..\..\Yonghong\jdbcDriver\sqljdbc_4.1\sqljdbc41.jar;..\..\Yonghong\jdbcDriver\sybase\jconn2d.jar;..\..\Yonghong\jdbcDriver\hive\hive.jar;..\..\Yonghong\jdbcDriver\presto\presto-jdbc-0.152.jar;D:\Yonghong6.1\Yonghong\jdbcDriver\oracle-jdbc-10\orai18n.jar
- set _RUNJAVA="%JRE_HOME%\bin\YonghongBI"
- set _RUNJDB="%JAVA_HOME%\bin\jdb"
复制代码
|