[Resin-interest] Why isn't startup output going to resin stdout file?
Hi, I'm using Resin 3.0.19 on a Mac 10.5.6. When I run my startup script, all my output is sent to the terminal window where it used to go to a stdout file. This happened when I changed my resin configuration to run in a cluster, but the startup script changed very little. I have included it below. Please let me know if you know of additional steps to troubleshoot. Thanks, - Dave ===Begin startup script === #!/bin/ksh umask 006 export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/ export RESIN_HOME=/opt/resin/current export ORACLE_HOME=/opt/oracle #export ORACLE_HOME=/opt/oracle/instantclient export DYLD_LIBRARY_PATH=$ORACLE_HOME:$DYLD_LIBRARY_PATH DATE_TIME=`date +%Y-%m-%d-%H.%M.%S` LOGS_DIRECTORY=/opt/var/logs/resin/dev-resin if [[ ! -d $LOGS_DIRECTORY ]]; then mkdir -p $LOGS_DIRECTORY else rm -f $LOGS_DIRECTORY/jvm rm -f $LOGS_DIRECTORY/stderr rm -f $LOGS_DIRECTORY/stdout fi $RESIN_HOME/bin/httpd.sh \ -Djava.awt.headless=true \ -J-d64 \ -Xms256m \ -Xmx512m \ -XX:PermSize=256m \ -XX:MaxPermSize=512m \ -server-root /opt/containers/resin/dev-resin \ -server dev-resin-1 \ -conf /opt/containers/resin/dev-resin/conf/resin.conf \ -J-Djava.library.path=$ORACLE_HOME \ -stderr $LOGS_DIRECTORY/stderr-$DATE_TIME \ -stdout $LOGS_DIRECTORY/stdout-$DATE_TIME \ -jvm-log $LOGS_DIRECTORY/jvm-$DATE_TIME \ start 21 /dev/null while [[ ! -e /opt/containers/resin/dev-resin/httpd.pid ]] ; do sleep 0.5; done HTTPD_PID=`cat /opt/containers/resin/dev-resin/httpd.pid` echo Resin [$HTTPD_PID] Started. echo `cat /opt/containers/resin/dev-resin/httpd.pid` ln -s $LOGS_DIRECTORY/jvm-$DATE_TIME $LOGS_DIRECTORY/jvm ln -s $LOGS_DIRECTORY/stderr-$DATE_TIME $LOGS_DIRECTORY/stderr ln -s $LOGS_DIRECTORY/stdout-$DATE_TIME $LOGS_DIRECTORY/stdout End startup script === -- View this message in context: http://old.nabble.com/Why-isn%27t-startup-output-going-to-resin-stdout-file--tp27013941p27013941.html Sent from the Resin mailing list archive at Nabble.com. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] GzipFilter Overrides Cache-Control
Not sure this is a bug with GzipFilter or expected behavior, but found something worth sharing and dropping in the forum record for others to find. We had a problem distributing content to a CDN and keeping it in cache there because the CDN was requesting content with an Accept-Encoding: gzip request header, which was causing our GzipFilter to slap a Cache-Control: private response header via the http response object. Our file servlet (an extension of the default resin file servlet) was adding a Cache-Control header with max-age=84, public that the GzipFilter ended up writing Cache-Control: max-age=84000, public, private. In our testing, we were using curl to test/examine the headers, so we didn't pick up that the private cache control header was being added. Our CDN provider, however, was testing with a user agent that indicated it accepted the gzip encoding and was thus seeing the cache-control header appear. Made for a lively debate. Thus, they were seeing the private declaration and not caching the result. So, we had to add an exclude-pattern to our GzipFilter configuration to not pick up files in the directory we wanted to control caching on. So, fyi, either GzipFilter has a bug in that it is not honoring Cache-Control headers set by responses further downstream, or it is operating properly and you must remember to disable the GzipFilter on content you want to be cached publicly. It would be nice if GzipFilter honored cache-control directives. configuration e.g.: filter-mapping filter-namegzip/filter-name url-pattern exclude-pattern*.zip/exclude-pattern include-pattern/*/include-pattern /url-pattern /filter-mapping -tyson -- View this message in context: http://old.nabble.com/GzipFilter-Overrides-Cache-Control-tp27022353p27022353.html Sent from the Resin mailing list archive at Nabble.com. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest