--- On Fri, 12/4/09, realhossam <realhossam@yahoo.
unsubcsribe
From: realhossam <realhossam@yahoo.
Subject: Re: [Java] Performance issue with synchronized method
To: Java_Official@
Date: Friday, December 4, 2009, 2:24 PM
since each call must wait for the previous call, then try to improve performance from the stored procedure side, cache common used records and data, try to figure out if any repeated calculations is made, try to call asynchronous calls to perform any calculations for the next calling thread until the current synchronous call is over (u can make temp table for the calculated asynchronous results to be used for the next thread).
try improving procedure itself by using with(nolock) for example, avoid using cursors, use connection pooling in code, etc....
that's what I thought of :)
____________ _________ _________ __
From: Manish Kumar Agarwal <manish1.agarwal@ gmail.com>
To: cjug@googlegroups. com
Sent: Fri, December 4, 2009 7:11:16 AM
Subject: [Java] Performance issue with synchronized method
I have a synchronized method from where I m giving a call to a database
procedure.
There are many threads waiting to enter inside the thread and current thread
is taking much time.
Its business requirement that each thread should get updated records.
How can I improve performance of the system in this case?
--
Thanks & Regards,
Manish Kumar Agarwal
M +91 995 803 0712
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
Java Official Group is created for the following topics: Java 2 Enterprise Edition - J2EE, Java 2 Standard Edition - J2SE, Java 2 Micro Edition - J2ME, XML, XSL, XSD, XPATH, Web Services, Jini, JXTA for all type of Java Geeks.
Whoever posts spam / ads / job related message will be BANNED IMMEDIATELY
No comments:
Post a Comment