Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm so sure, this problem is related to something with MySQL.
Because when I'm surfing the website it loads just quick as long as there is no call to MySQL.
Whenever there is a MySQL query.. it delays..
I tried to tweak MySQL as I found some tutorials about that.. but nothing helped..!! so I went back to default ( my-large.cnf ).
Look in your log files, I'm going to guess that it's generating an SSL key for the first time, and running out of entropy in the entropy pool.
This is not uncommon for Virtual Machines, I've had it happen several times. Just run "find /" a few times, it should generate some entropy and make it able to create the key. There are other, possibly better ways of generating entropy, but "find" is quick
Look in your log files, I'm going to guess that it's generating an SSL key for the first time, and running out of entropy in the entropy pool.
This is not uncommon for Virtual Machines, I've had it happen several times. Just run "find /" a few times, it should generate some entropy and make it able to create the key. There are other, possibly better ways of generating entropy, but "find" is quick
Hello kschmitt,
First, I'd like to thank you a lot for the info..
But, would you be so kind to give me few words explaining what's meant by entropy, or entropy pool?
I'm kinda still learning about Linux servers.. sill collecting my infoes ;-)
Also, is there a specific log file that you want me to look into?
MySQL Log file for example?
Hello kschmitt,
First, I'd like to thank you a lot for the info..
But, would you be so kind to give me few words explaining what's meant by entropy, or entropy pool?
I'm kinda still learning about Linux servers.. sill collecting my infoes ;-)
Also, is there a specific log file that you want me to look into?
MySQL Log file for example?
Thanks a lot..
OK.
The kernel has an entropy pool: a place where it collects random noise from the pci cards, the buses, keyboard/mouse input, and (if you're lucky) a hardware random number generator. Being such a clean idealized system, VMs tend to be slow to build up a sizable entropy pool, and they don't have hardware random number generators, because they aren't hardware.
(You can find info on your system's entropy pool in /proc/sys/kernel/random/ look at what's in those files & look up the directory on google)
Linux has two random devices /dev/random and /dev/urandom.
/dev/random uses the entropy pool to create real random numbers, and is considered OK for cryptographic uses*. If the entropy pool runs dry, it will hang until the pool fills up enough to generate more real random numbers.
If there is entropy in the pool, /dev/urandom works the same as /dev/random. The difference is when the pool runs dry, urandom will give you psudo random numbers, which are not sufficient for cryptographic use, but are OK for many other uses.
When an SSL key is generated, it uses random, not urandom. On a fresh VM, there will be little to no entropy, so generating the key will hang. You have to do things on the system for the entropy pool to fill up. There are probably a dozen other things than generating SSL keys that will hang without enough entropy, but SSL key generation is the most common.
Good luck!
* Crypto & CS folks would probably argue this point, but for general use, ya know?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.