Hello,
i was linked from irc.freenode.org #mediawiki to that list, as alternative source.
My Problem is: -------------- * I am unable to upload files > 3000 KB to my wikis (small farm). Smaller uploads are working as supposed
Informations about the setup: ----------------------------- * Server-OS: ** Debian Etch
* Wiki-Version: ** mediawiki1.7 (installed via apt)
* Wiki-Changes: ** $wgUploadSizeWarning = 4000 * 1024; ** $wgMaxUploadSize = 1024*1024*100;
* PHP-Changes: ** post_max_size = 16M ** upload_max_filesize = 16M ** memory_limit = 128M
If i try to upload a file > 3000 KB to my wiki it results in the following error-message:
Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 7168001 bytes) in /usr/share/mediawiki1.7/includes/Sanitizer.php on line 928
The server itself is not that powerful, but according to munin the CPU has nothing to do. Maybe it could need more RAM, but according to free the defined swap partition is unused, so i cant imagine that amount of RAM is really the problem.
So if you have any idea regarding that problem, feel free to help me out. Thanks for reading that post :D
Best regards fidel
Hello Florian,
I'm confused... You want to upload files > 3MB, the error states some 20 MB (20971520 byte, see also http://www.google.de/search?q=20971520%20bytes%20in%20MB ) and you set upload_max_filesize = 16M. Maybe it's a good idea to advance it to 64M?
Florian
On 7/4/07, Florian Pöck < f.poeck@kniel.de> wrote:
Hello,
i was linked from irc.freenode.org #mediawiki to that list, as alternative source.
My Problem is:
- I am unable to upload files > 3000 KB to my wikis (small farm).
Smaller uploads are working as supposed
Informations about the setup:
- Server-OS:
** Debian Etch
- Wiki-Version:
** mediawiki1.7 (installed via apt)
- Wiki-Changes:
** $wgUploadSizeWarning = 4000 * 1024; ** $wgMaxUploadSize = 1024*1024*100;
- PHP-Changes:
** post_max_size = 16M ** upload_max_filesize = 16M ** memory_limit = 128M
If i try to upload a file > 3000 KB to my wiki it results in the following error-message:
Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 7168001 bytes) in /usr/share/mediawiki1.7/includes/Sanitizer.php on line 928
The server itself is not that powerful, but according to munin the CPU has nothing to do. Maybe it could need more RAM, but according to free the defined swap partition is unused, so i cant imagine that amount of RAM is really the problem.
So if you have any idea regarding that problem, feel free to help me out. Thanks for reading that post :D
Best regards fidel
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Florian Pöck wrote: [snip]
** memory_limit = 128M
If i try to upload a file > 3000 KB to my wiki it results in the following error-message:
Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 7168001 bytes) in /usr/share/mediawiki1.7/includes/Sanitizer.php on line 928
Are these image files or some other kind of files? Is image resizing support enabled? Are you using the GD library (default) or ImageMagick (with $wgUseImageMagick enabled)?
If using GD resizing, it may be counting more memory usage against you. However, the reference to which part of the code is using memory and how much seems unusual. That makes it sounds like you have a very large *page text* which is being processed.
You also have the memory_limit being set to 20 megabytes; that was probably due to the limit being low when you installed the software, and overrides your newly changed server settings. Remove the line for that from your LocalSettings.php to try letting the larger memory_limit through.
- -- brion vibber (brion @ wikimedia.org)
mediawiki-l@lists.wikimedia.org