[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-users] Unable to render Velocity Template
|
Hello again,
We changed the tmp directory through jetty parameters:
[root@ecommerce01 ~]# ps -aux | grep jetty
jetty 7532 8.9 34.1 8094192 2733156 ? Sl May20 63:28 /bin/java -server -XX:ParallelGCThreads=2 -Dorg.mortbay.jetty.Request.maxFormContentSize=5000000 -Xms5120M -Xmx5120M -XX:MaxPermSize=1024m -Duser.timezone=GMT-3 -agentpath:/opt/dynatrace-5.6.0/agent/lib64/libdtagent.so=name=ELETRO_FRONT_JETTY_ECOMMERCE02,server=***.***.***.***:9998 -Duser.language=pt -Duser.country=BR -Djetty.state=/u/jetty/jetty-distribution-9.1.3.v20140225/jetty.state -Djetty.logs=/u/jetty/jetty-distribution-9.1.3.v20140225/logs -Djetty.home=/u/jetty/jetty-distribution-9.1.3.v20140225 -Djetty.base=/u/jetty/jetty-distribution-9.1.3.v20140225 -Djava.io.tmpdir=/var/cache/jetty -jar /u jetty/jetty-distribution-9.1.3.v20140225/start.jar jetty-logging.xml jetty-started.xml
root 15043 0.0 0.0 112640 964 pts/1 S+ 11:41 0:00 grep --color=auto jetty
But we are still getting loads of Unable to render Velocity Template in this particular machine. If you have any idea of what might be happening I'd appreciate. Jetty log follows attached.
Thank you,
Eduardo Fiss Beloni
ebeloni@xxxxxxxxxxxx
www.voiza.com.br
Soluções em Java
(51) 4063-8913 - Porto Alegre
(53) 4062-9183/3222-1833 - Pelotas
----- Original Message -----
From: "Joakim Erdfelt" <joakim@xxxxxxxxxxx>
To: "JETTY user mailing list" <jetty-users@xxxxxxxxxxx>
Sent: Monday, February 9, 2015 6:11:19 PM
Subject: Re: [jetty-users] Unable to render Velocity Template
I agree with Stefan and Michael.
Its a /tmp directory cleanup issue. (quite a common problem seen when using long running, platform neutral, services on linux)
Like Michael said, set the java.io.tmpdir system property that Java uses to a directory somewhere other than /tmp. (the system admins should have a few preferences for you, depending on your linux distribution. (some commonly seen example: /var/cache/jetty or /var/www/jetty or /home/jetty/work)
This will influence the behavior of Jetty itself, and velocity.
Jetty will then use the new temp directory for its own unpacked webapp structure (a process that which is required in most deployment use cases).
And when velocity itself needs a temp directory for its own reasons (which it does) those files will also remain untouched.
Also if you have any other 3rd party libraries that use the Java temp file routines those will also reside in an location untouched by other processes.
Additional suggestions:
• Upgrade Jetty - 9.1.x is part of the transitional period for Jetty 9 from Servlet 3.0 to Servlet 3.1. Its a bit of a hybrid release.
• Once you have upgraded, use the ${jetty.base} and ${jetty.home} separation.
• After creation of your ${jetty.base}, make sure you have a ${jetty.base}/work/ directory created as well.
--
Joakim Erdfelt < joakim@xxxxxxxxxxx >
webtide.com - intalio.com/jetty
Expert advice, services and support from from the Jetty & CometD experts
eclipse.org/jetty - cometd.org
On Mon, Feb 9, 2015 at 12:34 PM, Eduardo Fiss Beloni < ebeloni@xxxxxxxxxxxx > wrote:
Thank you for the reply Stefan,
But the people that set up the servers told me there's no tmp clean up.
Can you think of another reason?
Eduardo Fiss Beloni
ebeloni@xxxxxxxxxxxx
www.voiza.com.br
Soluções em Java
(51) 4063-8913 - Porto Alegre
(53) 4062-9183/3222-1833 - Pelotas
----- Original Message -----
From: "Stefan Magnus Landrø" < stefan.landro@xxxxxxxxx >
To: "JETTY user mailing list" < jetty-users@xxxxxxxxxxx >
Sent: Wednesday, January 28, 2015 10:12:04 AM
Subject: Re: [jetty-users] Unable to render Velocity Template
Sounds like the linux tmp folder is cleaned up every now and then. You can make jetty use a different tmp folder in order to prevent issue. See docs.
Stefan
2015-01-28 12:26 GMT+01:00 Eduardo Fiss Beloni < ebeloni@xxxxxxxxxxxx > :
Hello,
We are having loads of "Unable to render Velocity Template" throughout the jetty logs. Then the user can't see the site anymore.
2015-01-26 10:20:38,751 [qtp399631128-23 ERROR CommonsLogger]: Unable to render Velocity Template, '/error.vm'
org.apache.velocity.exception.VelocityException: Exception rendering #parse(/_inc/footer.vm) at /error.vm[line 67, column 9]
...
...
2015-01-25 23:07:34,732 [qtp1819130381-4849 ERROR CommonsLogger]: Unable to render Velocity Template, '/super/aba_vitrine.vm'
org.apache.velocity.exception.VelocityException: VelocimacroProxy.render() : exception VM = #produto()
It happens a few times a month. When this happens the only way to bring our frontend servers back is to restart jettys.
This started to happen when we updated from jetty 7 to jetty 9.1.3. Could this be a jetty parameter or something?
Thank you,
Eduardo Fiss Beloni
ebeloni@xxxxxxxxxxxx
www.voiza.com.br
Soluções em Java
(51) 4063-8913 - Porto Alegre
(53) 4062-9183/3222-1833 - Pelotas
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users
--
BEKK Open
http://open.bekk.no
TesTcl - a unit test framework for iRules
http://testcl.com
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users
Attachment:
2015_05_20.stderrout.log.zip
Description: Zip archive