Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Our image uploader application is getting timeouts. I can also reproduce the problem on the command line like this

iresweb1:/home/ecom/var/shares/media/800x800 # \ls -f
ls: memory exhausted

and this

iresweb1:/home/ecom/var/shares/media/800x800 # find . -ls
532845 2168 drwxrwxr-x   2 wwwrun   users     2215936 Aug 28 14:15 .
find: memory exhausted

It happens on all other members of the webserver farm

iresweb7:~ # \ls -f /home/ecom/var/shares/media/800x800
ls: memory exhausted
iresweb7:~ # find /home/ecom/var/shares/media/800x800 -ls
532845 2168 drwxrwxr-x   2 wwwrun   users     2215936 Aug 28 14:15 /home/ecom/var/shares/media/800x800
find: memory exhausted

It doesn't happen in the sister directories of the broken one

iresweb1:~ # \ls -f /home/ecom/var/shares/media/170x170|head
.
..
Coolum-Beach-Getaway-Resort42.jpg
bayview-geographe-resort_30.jpg
Base-Airlie-Beach-Resort23.jpg
cradle-mountain-wilderness-village_11.jpg
Aloft-Boutique-Accommodation90.jpg
rendezvous-observation-city-hotel_2.jpg
tropic-wings-coach-tours-classic-kuranda-experience_3.jpg
voyages-cradle-mountain-lodge-spa-suite-waldheim-alpine-spa-experience_3.jpg
iresweb1:~ # \ls -f /home/ecom/var/shares/media/80x80|head  
.
..
Coolum-Beach-Getaway-Resort42.jpg
bayview-geographe-resort_30.jpg
Base-Airlie-Beach-Resort23.jpg
cradle-mountain-wilderness-village_11.jpg
Aloft-Boutique-Accommodation90.jpg
rendezvous-observation-city-hotel_2.jpg
tropic-wings-coach-tours-classic-kuranda-experience_3.jpg
voyages-cradle-mountain-lodge-spa-suite-waldheim-alpine-spa-experience_3.jpg

The directory in question is an NFS mount as seen here

iresweb1:/home/ecom/var/shares/media/800x800 # mount|grep shares
webshare1.myname.net:/var/local/shares on /home/ecom/var/shares type nfs (rw,relatime,vers=3,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.19.0.153,mountvers=3,mountport=48563,mountproto=udp,local_lock=none,addr=10.19.0.153)

iresweb1:/home/ecom/var/shares/media/800x800 # grep shares /etc/fstab
webshare1.myname.net:/var/local/shares   /home/ecom/var/shares   nfs     _netdev,defaults,vers=3

Looking at the NFS source host, I see a lot of files but I can't see the cause of the memory exhausted.

webshare1:~ # ls -l /var/local/shares/media/800x800/|wc -l
34197
webshare1:~ # ls -l /var/local/shares/media/170x170/|wc -l            
46278
webshare1:~ # ls -l /var/local/shares/media/80x80/|wc -l       
47568

Similar thing happened last month and we somehow stumbled upon a corrupt file, deleted it and problem went away. OS is openSUSE 11.4

share|improve this question
    
check on the server for a files with loooong names –  tigran Sep 3 '13 at 6:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.