"The most valuable commodity I know of is information."

rebelutionary / 2.0

Wondering why your WAR is slow? Think of your timezone! / 2003 Nov 14

People have downloaded the recently released JIRA 2.5.1 and complaining it was slow. Then it suddenly sped up, without changing anything. As Rove would say - What the?

This perplexed us for a while, until one of our customers actually figured it out - timezones!

See if you can connect the dots:

  • Australia is ahead of most of the rest of the world.
  • JSP files are recompiled if the file modified timestamp is 'ahead' of the compiled class.

So where is all this slowness? If you download JIRA very soon after the release, your servlet engine will recompile the JSP files every request until your timezone 'passes' the time at which we built it.

Slow, slow, slow, fast! Hahahahah :)

One of life's little mystery's solved.

Comments

Mike: "Australia is ahead of most of the rest of the world."

Yeah, keep telling yourself that ;-)

Posted by: Cameron at November 14, 2003 11:32 AM

Except NZ of course, wrt both timezones and rugby ;-)

Posted by: Chris Miller at November 14, 2003 7:24 PM

This may seem silly, but why oh why isn't it using GMT or UTC based dates (like unix epochs)?

Posted by: Iain at November 14, 2003 10:17 PM

...and remember, next time, 'touch'ing your JSP files with the desired timezone (probably GMT or UTC?) will solve the proiblem before it shows up ;)

Posted by: Carlos Villela at November 18, 2003 1:50 PM

I wonder why this should happen. Aren't locale and timezone information taken into account by the JSP engine? Or, aren't timestamps of files converted into UTC?

Posted by: Ghasem Kiani at November 29, 2003 2:25 AM

Follow / ACTIVITY

About / LIFE

Atlassian

Atlassian / WORK

Photos / PERVE

Search / SEEK

Mates / BLOGROLL

Investments / FUTURE

© Mike Cannon-Brookes - 2000-2006