|
Sponsored Links
Resources
Enterprise Java Research Library
Get Java white papers, product information, case studies and webcasts
|
Performance and scalability
Performance and scalability
Performance and scalability
|
Messages: 2
Messages: 2
Messages: 2
Printer friendly
Printer friendly
Printer friendly
Post reply
Post reply
Post reply
XML
XML
XML
|
 |
Please suggest me about ThreadLocal and java.util.TimeZone
Hi all,
I wrote my web and I test my web and I found many Threads was blocking by java.util.TimeZone. My coding want to create many Calendars with "GMT" TimeZone for each request.
Locale LOCALE = Locale.UK; TimeZone TIMEZONE = TimeZone.getTimeZone("GMT"); Calendar cal = Calendar.getInstance(TIMEZONE, LOCALE);
I try to change to be LOCALE and TIMEZONE to be constant value (final static) But my web are slower. Should I change this code to used ThreadLocal? Or Can every one help to give some suggestions for better solutions?
Thanks
|
|
Message #321075
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
Re: Please suggest me about ThreadLocal and java.util.TimeZone
When I started stress test on my web, I found many Threads was blocking by java.util.TimeZone.
Missing.
|
|
Message #322303
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
Re: Please suggest me about ThreadLocal and java.util.TimeZone
Please provide the code that you were trying to run and the error message, including the stack trace, that you caught.
Java Development on Demand http://www.hitech.com.ua/en/
|
|
 |
Hot threads
Hot threads
Hot threads
|
More hot threads
More hot threads
More hot threads
|
 |
Brian Goetz continues to lift the lid and peak into the inner workings of Java in Java Urban Performance Legends. In this article he exposes the fallacy behind some of the more common performance myths found in the annals of the JVM.
(93 comments,
last posted
February 06, 2009)
Bruce Tate, author of Better, Faster Lighter Java and Bitter EJB has come out with a new book called Beyond Java. Bruce has an epiphany about the future of software development. Does it include Java?
(770 comments,
last posted
September 23, 2009)
Looks like today AJAX concept have several interpretations. We can distinguish different approaches of AJAX integration. Can they co-exist within the same application? Can we talk about layered AJAX integration?
(68 comments,
last posted
May 08, 2008)
Artima has published a short article describing the Design-Time API for JavaBeans, which was recently approved as JSR 273. This API promises to bring VB-like ease to Java development, but may face a cultural bias among Java developers who tend to think more in terms of class libraries than components.
(225 comments,
last posted
November 19, 2009)
There is plenty of speculation today regarding a potential buyout of Sun Microsystems by Scott McNealy and Silver Lake Partners. How would privatization of Sun affect Java?
(16 comments,
last posted
May 15, 2009)
More hot threads »
|
|