Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Another memory exhausted problem  (Read 2673 times)

0 Members and 1 Guest are viewing this topic.

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Another memory exhausted problem
« on: April 03, 2008, 10:23:21 pm »

I'm struggling to work our what needs changing with my php build here.

At first I was getting memory exhausted errors when uploading even small files (300*200 ad roughly 30k) so I changed the php.ini to

memory_limit = 64M
upload_max_filesize = 50M
post_max_size = 50M
max_input_time = 60
max_execution_time = 30

which allows me to upload those small files. Now if I try a file that is 3000*4000 at 250k ig get a 500 server error. It must be something to do with the php build but I'm a bit lost as to what to try next.

http://www.windwise.net/gallery

All albums are open to guests at the moment

Logged
It is a mistake to think you can solve any major problems just with potatoes.

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Another memory exhausted problem
« Reply #1 on: April 04, 2008, 09:25:03 am »

Memory usage doesn't depend on the filesize but on width+height+colordepth. For a pic the size you try to upload you'll neede approx 60M. That's why an app like Photoshop consumes all possible memory on your local PC and not just eg. 100k.

Some values you set in your php.ini just don't make sense and are way to huge. Read some php configuration docs to find values that mach your server specs.

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Another memory exhausted problem
« Reply #2 on: April 04, 2008, 07:08:33 pm »

Still trying to sort this. The error logs show this but I do not quite understand what it means.

windwise.net [Fri Apr 04 13:39:43 2008] [error] [client 79.170.40.31] FATAL: emalloc(): Unable to allocate 13808 bytes, referer: http://www.windwise.net/gallery/upload.php
windwise.net [Fri Apr 04 13:39:43 2008] [error] [client 79.170.40.31] Premature end of script headers: upload.php, referer: http://www.windwise.net/gallery/upload.php
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Nibbler

  • Guest
Re: Another memory exhausted problem
« Reply #3 on: April 04, 2008, 07:31:53 pm »

Looks like you hit a hard memory limit imposed by your host.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.