LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-06-2012, 04:04 AM   #1
Sylphide
LQ Newbie
 
Registered: Mar 2012
Posts: 4

Rep: Reputation: Disabled
jpg loading problem


Hello,

I have a persistent problem with apache and jpg. Sometimes, jpg load fast, but a few hours later the loading stops in the middle or is very slow. The BW seems correct since I can download an iso 1mo/sec (www.rpgsoluce.com/test.iso).
The problem occurs arbitrarily when you visit www.rpgsoluce.com (news images, wallpapers, fanats in "medias" etc.). After a few tries and with "luck", the image (through javascript or direct image url) won't load (not time of day specific).
I think my config is correct (debian 6 x64) but I really do not understand why only "medium" size jpg cause problems, and no errors in apache logs (even in debug level).
Tried to delete htaccess, disable iptables, replace apache with nginx, mpm-worker with fastcgi, local dns, seperate images in static subdomain, memory_limit=512M in php.ini; nothing solved the problem.

Server : Xeon FIRST (http://hosteur.com/serveur-dedie/)
Stats : www.rpgsoluce.com/mrtg/
Apache config : timeout=150, keepalive=on, keepalivereq=170, keepalivetimeout=2, prefork (5, 5, 10, 140, 0)
iptables : http://www.rpgsoluce.com/troubleshoot/iptables.txt
other commands : http://www.rpgsoluce.com/troubleshoot/other.txt
top : http://www.rpgsoluce.com/troubleshoot/top.jpg
htop : http://www.rpgsoluce.com/troubleshoot/htop.jpg
iftop : http://www.rpgsoluce.com/troubleshoot/iftop.jpg
wireshark capture from inside my nat when trying to display a 650ko jpg (problem case) : http://www.rpgsoluce.com/troubleshoot/wireshark.jpg
corresponding split image : http://www.rpgsoluce.com/troubleshoot/img.jpg
phpinfo : http://www.rpgsoluce.com/troubleshoot/info.php

We can see that the server takes a very long time to send next TCP segment (line 1129). When an image loads fast, it is the same but the interval between PDU is low. The tcp window size is 57 (scaling factor 128).
Videos seem to work (when flv headers are not wrong) : http://www.rpgsoluce.com/medias/videos/
Should I change net/core/rmem_max or net/ipv4/tcp_rmem values in /etc/sysctl.conf ? ...

Any suggestions to help me solve this?
Thank you.
 
Old 03-07-2012, 07:58 AM   #2
Sylphide
LQ Newbie
 
Registered: Mar 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Everything seems fast since yesterday... I only added EnableMMAP off and EnableSendfile Off in apache.conf + memory_limit=256M. I hope it will last more than a few days...

No suggestions ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] jpg loading problem Sylphide Linux - Networking 0 03-06-2012 03:55 AM
How can make FVWM support JPG? can't make jpg as my wallpaper. jazzi Linux - Desktop 5 08-09-2008 02:54 PM
HELP! BASH - Convert filenames from dsc00***.jpg to *.jpg jimmybond01 Programming 9 05-08-2007 06:17 AM
mencoder problem converting *.jpg to .avi whistl Linux - Software 9 06-29-2005 01:32 PM
Problem opening a jpg from windows el_pajaro! Linux - Software 2 11-26-2004 03:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration