Options to reduce the Log File size for BuildResults.jsp
"Suram, Ravi Rajanya" <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <4619FDAD8EA3CC42A78D090EDC33754302331635@MSGDALCLR2WIN.DMN1.FMR.COM> |
Hi,
I am currently configuring CruiseControl (2.7.3) and I am using Ant
1.7.1. I am having a problem where the build is happening fine but when
it comes to displaying the build results, I see a Blue Screen. I went
through the FAQ site and found that this could be because of the huge
log file size. In my case the log file is 70MB (Believe it or not). I
see that all the debug statements are getting into the log file as
suggested by another CC-Mate I just deleted the Debug statements from
the log file and the Log file size reduced to 18MB and the good news is,
I see that the page is coming up fine now.
I tried to do a couple of settings suggested by others in the Forum like
1) Setting uselogger="true"
2) Checking the Log4j.properties (It has Info as the Log level)
The only option that was suggested and I have not implemented Is
changing the AntBuilder.java file, I don't want to do this as we
frequently upgrade our Ant versions and I guess I need to change it with
every upgrade..
Please find below the snippet of my config.xml
<bootstrappers>
<currentbuildstatusbootstrapper
file="buildstatus.txt"/>
<antbootstrapper
antscript="${ANT_HOME}\bin\ant.bat"
uselogger="true"
tempfile="bootstrap_build_templog.xml"
usedebug="false"
buildfile="\build\build.xml"
target="update-view">
<property
name="viewroot" value="\build"/>
<property
name="viewupdatelogfile-prev" value="Build"/>
<property
name="viewupdatelogdir" value="\logs"/>
</antbootstrapper>
</bootstrappers>
<listeners>
<currentbuildstatuslistener
file="currentbuildstatus.txt"/>
</listeners>
<schedule interval="120">
<!--target="all-ss" -->
<ant antscript="${ANT_HOME}\bin\ant.bat"
uselogger="true"
usedebug="false"
usequiet="true"
showAntOutput="false"
buildfile="\build\build.xml" antWorkingDir="\build"
tempfile="\logs\templog.xml"
target="Build" timeout="21600"
time="0300"
loggerClassName="net.sourceforge.cruisecontrol.util.XmlLoggerWithStatus"
>
<property
name="XmlLoggerWithStatus.file" value="buildstatus.txt"/>
<property name="SOAPTestscript.file"
value="${TESTSCRIPT_FILE}"/>
<property name="test.disabled"
value="false"/>
<property name="deployment.disabled"
value="true"/>
<property name="soatests.disabled"
value="true"/>
</ant>
</schedule>
Is there anything else that can be done to resolve this?
Any suggestions Please?
Thanks and Regards,
Ravi Suram
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H