You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Merrell, Vince [IT]" <vi...@citigroup.com> on 2004/03/09 12:02:59 UTC

[users@httpd] Images slow to load in CGI script

Hi to all,

I'm currently modifying a very simple CGI script in Perl which generates a table.

The script has worked fine (and still does) but now on each line in the table, there is a small .GIF file, 195 bytes in size. This is inserted into each row of the table using the standard <img src> construct. The tables usually have 10-20 rows.

My problem is that these GIFs load VERY slowly, perhaps appearing 5-10 seconds after the script has run through. All the instances of the GIF display together when they finally appear. The number of instances of the GIF on the page doesn't seem to change things at all.

I'm currently running a vanilla install of Apache 1.3.27 on Sun Solaris 8. All clients are local to the server, there are no proxies or firewalls in between. The Apache server itself is sparingly used, and is 95% idle at all times. Clients are all IE6 based.

>From httpd.conf:

MinSpareServers 5
MaxSpareServers 10
MaxClients 100
MaxRequestsPerChild 0

If anyone has any thoughts on this I'd appreciate them being shared.

Thanks in advance,

Vince


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Images slow to load in CGI script

Posted by Marty Landman <ML...@face2interface.com>.
At 06:02 AM 3/9/2004, Merrell, Vince [IT] wrote:

>My problem is that these GIFs load VERY slowly, perhaps appearing 5-10 
>seconds after the script has run through.

That does sound too long.

>All the instances of the GIF display together when they finally appear.

So it takes 5-10 second for 195 bytes to d/l and cache? Maybe the problem 
is elsewhere.

>The number of instances of the GIF on the page doesn't seem to change 
>things at all.

More evidence that the browser is caching the image. In fact, maybe it's 
not the image at all since it would already be cached after the first time 
you browsed the page.

>I'm currently running a vanilla install of Apache 1.3.27 on Sun Solaris 8. 
>All clients are local to the server

IOW you can't provide a url for us to look at? If you have a static ip you 
could right?

>If anyone has any thoughts on this I'd appreciate them being shared.

Vince, my suggestion is to

- clear your cache, and close your browser
- open the browser and display the image only w/o the cgi or the table markup
- now open the cgi page
- display the page source, copy & paste it onto a text editor
- save that file as cgisource.html
- remove all references to the image you think is problematic, save that 
file as noimage.html
- post back with load times for cgisource.html, noimage.html, and the image 
file alone
- anything in your server error log during this time?
- can you provide temporary access on the Internet to this web page?

hth,

Marty Landman   Face 2 Interface Inc.   845-679-9387
FormATable  DB: http://face2interface.com/Products/FormATable.shtml
Make a Website: http://face2interface.com/Home/Demo.shtml
Free Formmailer: http://face2interface.com/Products/Formal.shtml  


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org