Have you wondered sometimes you can't put on more threads for your scripts on Linux? Well the answer is simple. The Default settings for per-thread stack size is 10240 and the maximum number of processes the user can invoke is as large as 71680(this may vary from system to system). These defaults are responsible for limiting the number of threads that you can use in your programs. So reducing these values will allow you to use more threads. The commands you will use for this case is ulimit which shows or sets the resources for a Linux process. Based on my experience, I usually use these values by typing on the prompt:
ulimit -s 2048 --> I got 2gig of RAM, so for bigger RAM try to use larger values like 4096
ulimit -u 8068
There you go! Now you can play with more threads on your scripts.
Friday, December 5, 2008
Running more Threads on Linux
Posted by
NegOcc
at
4:08 AM
0
comments
Links to this post
phpMyAdmin: problem with missing parameters
I just had a terrible experience when I was developing scripts on Linux, everything was working so fine a couple of days ago and suddenly phpMyAdmin is acting so weird. I can browse the records, but when I tried to use the SQL Query box and submit my queries, I got this message,
import.php Missing parameters
well, more or less like that. It really sucks and I spent almost an hour figuring out what happened to phpMyAdmin, I even installed another new version of it, yet, the same thing happened, that is, my queries seemed rejected by phpMyAdmin.
Fortunately, I found out that the hard-disk space of our box is running out of space and 100% has been exhausted. That's suspicious! Then I finally recycled most spaces of our box's hd space, and tried doing my stuff again on phpMyAdmina and voila! Everything is back to normal! Too bad the FAQ of phpMyAdmin didn't help at all.
Posted by
NegOcc
at
3:58 AM
0
comments
Links to this post
Labels: import.php, missing parameters, phpmyadmin