When i am accesing the servlet sending images through normal browser
of doja development kit ,it is also taking much time to display
contents of image...
I have debugged time measurement
it is
Connection ----- 20760 ms
Downloading ----631 ms
Displaying -------321 ms
(Approx. same after repeating)
Do i need to have a chache server like weblogic
or there are streaming images API's available at server side......
On 6/9/05, necrodome@gmail.com <necrodome@gmail.com> wrote:
> have you debugged for time measurement for each operation?
>
> what about implemetimg threads?
>
> On 6/9/05, Kapil Sharma <kapes.endless@gmail.com> wrote:
> > Hello
> >
> > I have Doja application (i-appli) which is taking continous stream of
> > images from the servlet running on tomcat engine
> > For the servlet sending normal text I got the response in just a 1-2
> > sec. but for this servlet which is taking the image from
> > Fileinputstream (the real path one)and sending into outputstream, it
> > is taking about 21 sec for connection OK response
> >
> > ::::::::::::::::::::::::::::::::::I want to
> > know:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
> >
> > 1. I am missing some server configuration which takes my servlet so
> > much time to respond to i-appli client(HTTP connection OK)
> >
> > 2. Or I need to change my tomcat servlet engine with another like
> > weblogic or websphere one that could be faster than my tomcat engine.
> >
> > 3. Or I have problem with the servlet API that i am using. I am not
> > sure but taking images in real path is consuming time
> >
> >
> > My servlet code looks like
> >
> >
> >
> > //sending 5 image files to outputstream
> >
> > for(i=1;i<=5;i++)
> > {
> > filename = sc.getRealPath("pic"+i+".jpeg" ;//get path of pic.
> > file = new File(filename);
> > mimeType = sc.getMimeType(filename);
> > resp.set ontentType(mimeType);
> > in = new FileInputStream(file);
> > count = in.read(buf);
> > out.writ (buf,0,count);
> > }
> > in.close );
> > out.clos ();
> > }
> >
> >
> > Any idea will be implemented.
> >
> > Thanks in advance.
> >
> > kapess
> >
> > This mail was sent to address necrodome@gmail.com
> > Need archives? How to unsubscribe? http://www.appelsiini.net/keitai-l/
> >
> >
>
> This mail was sent to address kapes.endless@gmail.com
> Need archives? How to unsubscribe? http://www.appelsiini.net/keitai-l/
>
>
Received on Fri Jun 10 10:24:06 2005