Re: [Simpleweb-Support] Speed in serving requests
Brought to you by:
niallg
From: Oscar P. <os...@te...> - 2007-03-11 10:09:17
|
Hi, server load will be about 10 to 15 clients (it's a closed system) issuing continuous requests (basically thumbnails pages) and I need to have load times of less than 0.5 seconds. By the moment I'm testing with only one client and the response time is of about 2-3 seconds, so it's too slow. I'm serving files by reading them (with a 4kb buffer) and writing to response's OutputStream directly. But I'm caching files in memory, so files are only read the first time they are requested. I'll try FileEngine and test if it improves performance. Thank you very much. Òscar Pérez En/na Jeff Nichols ha escrit: > Hi Oscar, > > Where is your performance issue? Raw speed when handling a single > request, or only under load? > > Also, how are you serving those files? Are you reading and writing > them manually, or are you using the built-in FileEngine? > > Jeff > > > On Mar 10, 2007, at 1:18 PM, Oscar Perez wrote: > > >> Hi, >> first of all, I would like to congratulate Simpleweb's creators for >> their work. Now it's really easy to embbed a web server into an >> existing >> Java application. >> But I've got a question: is there a way to tune performance. I mean, >> I've implemented a server with just one service. This service simply >> reads files from the filesystem and returns them to the client. But >> I'm >> unable to achieve the required performance and I wonder if I can >> tune it >> to be faster. >> >> Thanks a lot for your help and congratulations again! >> >> Oscar Pérez. >> >> ---------------------------------------------------------------------- >> --- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to >> share your >> opinions on IT & business topics through brief surveys-and earn cash >> http://www.techsay.com/default.php? >> page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Simpleweb-Support mailing list >> Sim...@li... >> https://lists.sourceforge.net/lists/listinfo/simpleweb-support >> >> > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > |