• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Java Routine Running in Servlet Extremenly Slow. Fast on Normal Class.

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hey Guys i am developing a javaee. aplication i am using hibernate..
i am facing a extrange problem.. i am testing my code on a Java desktop application for testing before moving the code for the servlets..

this code. is doing the job on Count: 1456ms.. fetching 10814 records.. on a Normal java class NOT a servlet.

the results are correct. but when i run this routine on a servlet. is running extremly slow.
giving the next. results... (the fetch is 10814 records, with the exactly same parameters..).
and i am running the routine at least 5 times. consecutives giving the same results..
the results on the servlet. Time: 8923ms..10814 Records..
what this is happening. 1456 ms. vs. 8923ms. is weird.

this is driving me nuts.. please give with some tips..
thanks a lot best regards..
 
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there any other queries running when you start you app?
 
Cristian Daniel Ortiz Cuellar
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hebert Coelho wrote:


i am running the java ee aplication on localhost.. only that process.. at the time.. that's very weird i have 10 hours trying to find out the problem without success..


 
Cristian Daniel Ortiz Cuellar
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hebert Coelho wrote:Is there any other queries running when you start you app?



i have found a drawback. but still without solution the same code with the same parameters running on the normal java class. is returning the columns without fetch. that's why it's fast. but in the servlet. is returning the data as well.. why is this happening... that's why is so slow..
Images of LogFactor5.

Servlet Results: http://www.megaupload.com/?d=OQ7XLSQH
Java Normal Class: http://www.megaupload.com/?d=SVWI1JET

best regards.
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic