Results 1 to 4 of 4
  1. #1
    akiravelmont is offline Member
    Join Date
    Mar 2011
    Location
    bangalore
    Posts
    63
    Rep Power
    0

    Default standalone taking so much time than web application

    Hi folks,

    I am working on a web-application where i have a functionality which generates reports based on the data from DB. for small amount of data its working nice if the data is huge its taking more time. to avoid this problem i developed a standalone batch where i generated the jar file for the sources in web-application and made a call to the appropriate methods.

    But my problem is if web-application takes 10 secs to generate the report but in the case of standalone its taking nearly 3-5 mins to generate the same report. i didn't do much of the changes in code just using the same code as web-application

    Could you tell me what exactly i am doing wrong.

    Note: i am using tomcat 6 application server to run the web-application for standalone using batch commands

  2. #2
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    12,120
    Rep Power
    20

    Default Re: standalone taking so much time than web application

    Different environments?
    Any code changes?
    It's almost impossible to answer a question like this remotely.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    akiravelmont is offline Member
    Join Date
    Mar 2011
    Location
    bangalore
    Posts
    63
    Rep Power
    0

    Default Re: standalone taking so much time than web application

    There is no code changes like i mentioned i am using the same source which is using in web-application. Even environments also same.

    I know its difficult. but its really screwing me like anything i am not getting any idea how to fix this problem. Just hoping anyone faced the same issue and got any solution

  4. #4
    gimbal2 is online now Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,147
    Rep Power
    6

    Default Re: standalone taking so much time than web application

    Yes I've faced similar situations. Situations where you don't know what is going on and you want to run away from the problem by making someone else responsible for providing a solution.

    But you can't. You have access to the environment, you have to fix it with no information, no hint as to where to look and people breathing down your neck questioning your skill. This is the moment where you prove you've got what it takes and you figure out that software engineering is only in a small part about writing code and a large part about problem management.

    Step 1: get your mind straight. It is NOT black magic. It is not the position of the stars. This is caused by something reasonable and you only have to find out what. With absolutely nothing to go on. So start digging around and be sure to think out of the box a lot. Good luck :(
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. How to develop a standalone application using java
    By santhoshkeleti in forum New To Java
    Replies: 2
    Last Post: 11-15-2011, 07:21 PM
  2. developing a standalone application using java
    By santhoshkeleti in forum New To Java
    Replies: 1
    Last Post: 11-15-2011, 07:18 PM
  3. Query taking lot of time to execute..
    By asgardar in forum Advanced Java
    Replies: 4
    Last Post: 01-19-2011, 08:09 PM
  4. How to create datasource for standalone application using JPA
    By identita in forum Enterprise JavaBeans (EJB)
    Replies: 0
    Last Post: 12-03-2009, 02:04 AM
  5. howto make a standalone application?
    By Jerre in forum New To Java
    Replies: 4
    Last Post: 06-08-2008, 10:58 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •