- 浏览: 299827 次
- 性别:
- 来自: 杭州
文章分类
最新评论
-
wst0350:
点赞,有空深入讲解下原理
Servlet、Filter 和 Listener 调用顺序、生命周期的实验分析 -
tuspark:
Eclipse中高亮设置内容还有很多细节选项可以设置的,可以看 ...
Eclipse 设置匹配代码高亮 -
xichao1929:
这个时候,怎么启动发布的项目呢?????
JBoss设置为Windows服务 -
xiaozi7:
非常感谢,楼主的英语水平不一般那
WebSphere MQ Version 7 发布订阅相关配置 -
qtlkw:
slave没玩过
Hudson: java.lang.OutOfMemoryError: Java heap space error
运行hudson时,运用cobertura产生coverage reports,每当运行到最后都会报:
FATAL: Java heap space
java.lang.OutOfMemoryError: Java heap space
对在Hudson平台上运行的job下的Java Options对应处加上-Xms128m -Xmx512m条件,问题依然得不到解决。("-Xms128m -Xmx512m"?)
ant script:
对jsvc自启动的tomcat脚本,增加CATALINA_OPTS="-Xms128m -Xmx512m",问题得到解决。
FATAL: Java heap space
java.lang.OutOfMemoryError: Java heap space
对在Hudson平台上运行的job下的Java Options对应处加上-Xms128m -Xmx512m条件,问题依然得不到解决。("-Xms128m -Xmx512m"?)
ant script:
<?xml version="1.0"?> <project name="GEHGUIUT" default="all" basedir="."> <!-- Dir of the ant properties file --> <property name="ant.properties.dir" value="."/> <!-- put in the properties. --> <property file="${ant.properties.dir}/ant_ut.properties"/> <property name="testclassname" value="*"/> <path id="src.classpath"> <pathelement location="${tpcl}/OlderVersions/struts.jar"/> <pathelement location="${tpcl}/OlderVersions/weblogic.jar"/> <pathelement location="${tpcl}/icjava621.jar"/> <pathelement location="${tpcl}/tibrvj.jar"/> <pathelement location="${tpcl}/tibrjms.jar"/> <pathelement location="${tpcl}/log4j-1.2.8.jar"/> <pathelement location="${tpcl}/xml-apis.jar"/> <pathelement location="${tpcl}/xercesImpl.jar" /> <pathelement location="${tpcl}/castor-0.9.7-xml.jar"/> <pathelement location="${tpcl}/jgroups-all.jar"/> <pathelement location="${tpcl}/saaj.jar"/> <pathelement location="${tpcl}/axis-ant.jar"/> <pathelement location="${tpcl}/commons-discovery-0.2.jar"/> <pathelement location="${tpcl}/jaxrpc.jar"/> <pathelement location="${tpcl}/axis.jar"/> <pathelement location="${tpcl}/wsdl4j-1.5.1.jar"/> <pathelement location="${tpcl}/xalan.jar"/> <pathelement location="${tpcl}/joda-time-1.5.2.jar"/> </path> <path id="test.classpath"> <fileset dir="${tpcl}/utest"> <include name="junit-4.6.jar"/> <include name="mock.jar"/> <include name="ojdbc14.jar"/> </fileset> <fileset dir="${tpcl}"> <include name="commons-collections.jar"/> <include name="commons-dbcp-1.1.jar"/> <include name="commons-pool-1.1.jar"/> <include name="jms.jar"/> </fileset> </path> <path id="cobertura.classpath"> <fileset dir="${tpcl}/utest/cobertura"> <include name="*.jar" /> </fileset> <path refid="src.classpath"/> <path refid="test.classpath"/> </path> <taskdef classpathref="cobertura.classpath" resource="tasks.properties"/> <!-- Delete all directories --> <target name="cleanup"> <tstamp/> <delete dir="${builddir}"/> <!--delete dir="${javadoc}"/ --> </target> <!-- Create directories --> <target name="init" depends="cleanup"> <tstamp/> <mkdir dir="${builddir}"/> <!--mkdir dir="${javadoc}"/ --> </target> <target name="inittest"> <delete dir="${testdir}" /> <mkdir dir="${testdir}" /> <mkdir dir="${testdir}/reports/junitxml" /> <mkdir dir="${testdir}/reports/junithtml" /> <mkdir dir="${testdir}/reports/coveragexml" /> <mkdir dir="${testdir}/reports/coveragehtml" /> </target> <!-- Generate javadoc --> <target name="javadoc" depends="init"> <delete dir="${javadoc}"/> <javadoc packagenames="com.zw.geh.*" author="true" use="true" version="true" sourcepath="${source.web};${source.ejb}" destdir="${javadoc}"> <classpath> <pathelement location="${tpcl}/struts.jar" /> <pathelement location="${tpcl}/castor-0.9.7-xml.jar" /> <pathelement location="${tpcl}/jms.jar" /> <pathelement location="${tpcl}/xercesImpl.jar" /> <pathelement location="${tpcl}/icjava621.jar"/> </classpath> </javadoc> </target> <!-- Compile common, EJB and Web module code --> <target name="compile" depends="init"> <tstamp/> <javac srcdir="${source.ejb};${source.web};${source.common};${source.workflow};" encoding="ISO-8859-1" destdir="${builddir}" debug="yes"> <classpath refid="src.classpath"/> </javac> </target> <target name="compiletestcode" depends="inittest,compile"> <javac srcdir="${utestdir}/java;" destdir="${testdir}" debug="yes" > <classpath refid="src.classpath" /> <classpath refid="test.classpath" /> <classpath> <pathelement location="${builddir}"/> </classpath> </javac> </target> <target name="copyGlobalLocalResource" depends="compiletestcode"> <copy todir="${builddir}"> <fileset dir="${utestdir}/GlobalEnvironment/China"> <include name="GlobalEnvProperties.properties"/> </fileset> </copy> </target> <target name="copyGlobalUSResource" depends="compiletestcode"> <copy todir="${builddir}"> <fileset dir="${utestdir}/GlobalEnvironment/US"> <include name="GlobalEnvProperties.properties"/> </fileset> </copy> </target> <target name="copyResource" depends="compiletestcode"> <copy todir="${builddir}"> <fileset dir="${utestdir}/resources"> <include name="**/*.properties" /> <include name="**/*.sql" /> </fileset> <fileset dir="${source.web}"> <include name="**/*.properties"/> <include name="**/*.xslt"/> </fileset> <fileset dir="${web.inf.dir}"> <include name="**/server-config.wsdd"/> </fileset> <fileset dir="${web.inf.dir}/../"> <include name="**/GEHlog4j.properties"/> </fileset> <fileset dir="${config.dir}"> <include name="**/DatabaseType.properties"/> <include name="**/SQLHelper.properties"/> </fileset> <fileset dir="${config.dir}/Oracle"> <include name="**/DatabaseEscapeCharacters.properties"/> </fileset> </copy> <copy file="../ant/gehAppVersion.properties" tofile="${builddir}/com/zw/geh/gehAppVersion.properties"/> </target> <!-- this part is for unit test and coverage --> <target name="instrument"> <cobertura-instrument todir="${instrumenteddir}"> <!-- The following line causes instrument to ignore any source line containing a reference to log4j, for the purposes of coverage reporting. --> <ignore regex="org.apache.log4j.*" /> <fileset dir="${builddir}"> <exclude name="**/rv/**/*.class"/> <exclude name="**/*Test.class"/> </fileset> </cobertura-instrument> </target> <target name="test"> <junit dir="./" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true"> <!-- Note the classpath order: instrumented classes are before the original (uninstrumented) classes. This is important. --> <classpath location="${instrumenteddir}" /> <syspropertyset> <propertyref prefix="test-sys-prop."/> <mapper from="test-sys-prop.*" to="*" type="glob"/> </syspropertyset> <classpath location="${builddir}" /> <classpath location="${testdir}" /> <!-- The instrumented classes reference classes used by the Cobertura runtime, so Cobertura and its dependencies must be on your classpath. --> <classpath refid="cobertura.classpath" /> <formatter type="brief" usefile="false"/> <formatter type="xml" /> <test name="${testcase}" todir="${reportsdir}/junitxml" if="testcase" /> <batchtest todir="${reportsdir}/junitxml" unless="testcase"> <fileset dir="${utestdir}/java"> <include name="**/${testclassname}Test.java" /> <exclude name="**/rv/**/*.java"/> </fileset> </batchtest> </junit> <junitreport todir="${reportsdir}/junitxml"> <fileset dir="${reportsdir}/junitxml"> <include name="TEST-*.xml" /> </fileset> <report format="frames" todir="${reportsdir}/junithtml" /> </junitreport> </target> <target name="coverage-check"> <cobertura-check branchrate="34" totallinerate="100" /> </target> <target name="coverage-report"> <!-- Generate an XML file containing the coverage data using the "srcdir" attribute. --> <cobertura-report srcdir="${source.ejb};${source.web};" destdir="${reportsdir}/coveragexml" format="xml" /> </target> <target name="alternate-coverage-report"> <!-- Generate a series of HTML files containing the coverage data in a user-readable form using nested source filesets. --> <cobertura-report destdir="${reportsdir}/coveragehtml"> <fileset dir="${source.ejb}"> <include name="**/*.java" /> </fileset> <fileset dir="${source.web}"> <include name="**/*.java" /> </fileset> <!-- <fileset dir="${source.common}"> <include name="**/*.java" /> </fileset> <fileset dir="${source.workflow}"> <include name="**/*.java" /> </fileset> --> </cobertura-report> </target> <target name="cleanupJMSForUSMachine"> <echo message="cleanJMS"/> <exec executable="/apps/tibco/ems/5.0/bin/cleanupJMSForUTLocal.sh"/> <echo message="clean up jms successful"/> </target> <target name="cleanupJMSForLocalMachine"> <echo message="cleanJMS"/> <exec executable="cleanupJMSForWindows.bat"/> <echo message="clean up jms successful"/> </target> <target name="cleanGEHDB"> <echo message="cleanGEHDB"/> <ant antfile="build-cleandatabase.xml" target="cleanupGEH"/> </target> <target name="cleanGALDB"> <echo message="cleanGALDB"/> <ant antfile="build-cleandatabase.xml" target="cleanupGAL"/> </target> <target name="cleanGEHDBUS"> <echo message="cleanGEHDB"/> <ant antfile="build-cleandatabase.xml" target="cleanupGEHUS"/> </target> <target name="cleanGALDBUS"> <echo message="cleanGALDB"/> <ant antfile="build-cleandatabase.xml" target="cleanupGALUS"/> </target> <!-- Build script section --> <target name="all" depends="cleanGEHDB,copyGlobalLocalResource,copyResource,instrument,test,coverage-report,alternate-coverage-report,cleanupJMSForLocalMachine"/> <target name="US" depends="cleanGEHDBUS,copyGlobalUSResource,copyResource,instrument,test,coverage-report,alternate-coverage-report,cleanupJMSForUSMachine"/> </project>
<?xml version="1.0"?> <project default="all" basedir="."> <!-- Dir of the ant properties file --> <property name="ant.properties.dir" value="."/> <!-- put in the properties. --> <property file="${ant.properties.dir}/ant_ut.properties"/> <path id="src.classpath"> <fileset dir="${tpcl}/utest"> <include name="ojdbc14.jar" /> </fileset> </path> <target name="loadGlobalProperties_China" description="load global properties(China)"> <!-- Pull in China related environmental properties UT may need --> <property file="${utestdir}/GlobalEnvironment/China/GlobalEnvProperties.properties" /> </target> <target name="loadGlobalProperties_US" description="load global properties(US)"> <!-- Pull in US related environmental properties UT may need --> <property file="${utestdir}/GlobalEnvironment/US/GlobalEnvProperties.properties" /> </target> <target name="cleanupGAL" depends="loadGlobalProperties_China" description="clean db"> <sql driver="${GALGUI.UT.DB.DRIVERNAME}" url="${GALGUI.UT.DB.URL}" password="${GALGUI.UT.DB.PASSWORD}" userid="${GALGUI.UT.DB.USERNAME}" encoding="utf8" print="no"> <transaction src="${clean.GAL.sqlfile.name}"/> <classpath refid="src.classpath" /> </sql> </target> <target name="cleanupGALUS" depends="loadGlobalProperties_US" description="clean db"> <sql driver="${GALGUI.UT.DB.DRIVERNAME}" url="${GALGUI.UT.DB.URL}" password="${GALGUI.UT.DB.PASSWORD}" userid="${GALGUI.UT.DB.USERNAME}" encoding="utf8" print="no"> <transaction src="${clean.GAL.sqlfile.name}"/> <classpath refid="src.classpath" /> </sql> </target> <target name="cleanupGEH" depends="loadGlobalProperties_China" description="clean db"> <sql driver="${GEHGUI.UT.DB.DRIVERNAME}" url="${GEHGUI.UT.DB.URL}" password="${GEHGUI.UT.DB.PASSWORD}" userid="${GEHGUI.UT.DB.USERNAME}" encoding="utf8" print="no"> <transaction src="${clean.GEH.sqlfile.name}"/> <classpath refid="src.classpath" /> </sql> </target> <target name="cleanupGEHUS" depends="loadGlobalProperties_US" description="clean db"> <sql driver="${GEHGUI.UT.DB.DRIVERNAME}" url="${GEHGUI.UT.DB.URL}" password="${GEHGUI.UT.DB.PASSWORD}" userid="${GEHGUI.UT.DB.USERNAME}" encoding="utf8" print="no"> <transaction src="${clean.GEH.sqlfile.name}"/> <classpath refid="src.classpath" /> </sql> </target> </project >
对jsvc自启动的tomcat脚本,增加CATALINA_OPTS="-Xms128m -Xmx512m",问题得到解决。
#!/bin/sh # # Startup Script for Tomcat6 # # chkconfig: 345 88 18 # description: Tomcat Daemon # processname: jsvc # pidfile: /usr/var/run/jsvc.pid # config: # # Source function library. . /etc/rc.d/init.d/functions # prog=tomcat # # Adapt the following lines to your configuration JAVA_HOME=/usr/java/jdk1.5.0_18 CATALINA_HOME=/apps/apache-tomcat-6.0.16 DAEMON_HOME=$CATALINA_HOME/bin/jsvc-src TOMCAT_USER=your username(Linux下启动tomcat的用户) HUDSON_HOME=/apps/hudson_gal_geh # for multi instances adapt those lines. TMP_DIR=/var/tmp PID_FILE=/var/run/jsvc.pid CATALINA_BASE=/apps/apache-tomcat-6.0.16 CATALINA_OPTS="-Xms128m -Xmx512m" CLASSPATH=\ $JAVA_HOME/lib/tools.jar:\ $CATALINA_HOME/bin/commons-daemon.jar:\ $CATALINA_HOME/bin/bootstrap.jar case "$1" in start) # # Start Tomcat # $DAEMON_HOME/jsvc \ -user $TOMCAT_USER \ -home $JAVA_HOME \ -Dcatalina.home=$CATALINA_HOME \ -Dcatalina.base=$CATALINA_BASE \ -DHUDSON_HOME=$HUDSON_HOME \ -Djava.io.tmpdir=$TMP_DIR \ -wait 10 \ -pidfile $PID_FILE \ -outfile $CATALINA_HOME/logs/catalina.out \ -errfile '&1' \ $CATALINA_OPTS \ -cp $CLASSPATH \ org.apache.catalina.startup.Bootstrap # # To get a verbose JVM #-verbose \ # To get a debug of jsvc. #-debug \ exit $? ;; stop) # # Stop Tomcat # $DAEMON_HOME/jsvc \ -stop \ -pidfile $PID_FILE \ org.apache.catalina.startup.Bootstrap exit $? ;; *) echo "Usage tomcat.sh start/stop" exit 1;; esac
<tstamp /> <zipfileset dir="${web}" prefix="WEB-INF"> <include name="**/*.xml"/> <include name="**/*.java"/> <exclude name="web.xml"/> </zipfileset>
发表评论
-
ant call remote ant script by ssh connection
2014-08-21 16:23 1323<project name="Security ... -
ant call remote bat file
2014-07-04 00:02 709<?xml version="1.0" ... -
JBoss auto start script
2014-07-04 00:00 402#!/bin/sh # chkconfig: 3 97 20 ... -
cisco vpn安装"ActiveX部件不能创建对象"错误
2011-06-27 22:35 1483因为硬盘出现坏道,重整了一下机子。在自己的机子上重新安装cis ... -
Windows 下安装配置openldap
2011-05-31 17:05 1285转载: http://blog.csdn.net/zhangj ...
相关推荐
解决jenkins安装时提示离线问题
Hudson ver. 1.395.1 Hudson ver. 1.395.1 官网下载速度太慢了,好不容易找到一个,自己先收起来~
用于解决jenkins安装nodeJs插件后不能选择nodejs版本,将该文件上传到服务器,然后 docker cp ./hudson.plugins.nodejs.tools.NodeJSInstaller 容器ID:/var/jenkins_home/updates 然后重启Jenkins
hudson.rarhudson.rarhudson.rarhudson.rarhudson.rar
his release of Hudson is built against Java 7 and no longer supports running Hudson itself on Java 5 or 6. You can of course still use Hudson to manage jobs that compile against these earlier versions...
hudson-3.2.2 放在tomcat下直接打开即可
•易于安装-只要把hudson.war部署到servlet容器,不需要数据库支持。 •易于配置-所有配置都是通过其提供的web界面实现。 •集成RSS/E-mail/IM-通过RSS发布构建结果或当构建失败时通过e-mail实时通知。 •生成...
jenkins的nodejs12.8插件,在jenkins版本太老,不能更新插件时使用,上传文件到linux进入/root/.jenkins/updates/,重启jenkins即可。
哈德逊2.x Hudson 2 CI服务器。 可以在上找到 Wiki: :
hudson.freemarker_ide_0.9.14 hudson.freemarker_ide_0.9.14 hudson.freemarker_ide_0.9.14 hudson.freemarker_ide_0.9.14 hudson.freemarker_ide_0.9.14
status code 128: stdout: stderr: Failed to add the host to the list ... at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:886) ... 11 more ERROR: Error fetching remote repo 'origin' Finished: FAILURE
maven-hudson-dev-plugin-6.1.7-hudson-1.jar
hudson-3.0.0-M3.war
Hudson持续集成需注意的; 7. 压力测试、防内存泄漏测试; 基础CSS:标签的各种状态的样式;表格单双行的样式; 开发一个Action请求的响应: 前置条件:该Action涉及的Entity及EntityName.hbm.xml已经准备好。 ...
hudson.freemarker_ide_0.9.14 是eclipse 的 离线版插件 是配合我这篇帖子的 https://blog.csdn.net/jdycsdn/article/details/105598881
Fixed the possible "java.io.IOException: Not in GZIP format" problem when copying a file remotely. (issue 3134) Tool location name in node-specific properties always showed first list entry instead ...
hudson1.293.war
hudson1.293.part3.rar
hudson1.293.part2.rar