Open file : vi /etc/security/limits.conf
Add following two lines at bottom of limits.conf file
* soft nofile 65535
* hard nofile 65535
restart your machine. This will increase number of file handler to 65535. By-Default, Linux having 1024 handler.
To free pagecache: [root@host]# echo 1 > /proc/sys/vm/drop_cachesTo free dentries and inodes: [root@host]# echo 2 > /proc/sys/vm/drop_cachesTo free pagecache, dentries and inodes: [root@host]# echo 3 > /proc/sys/vm/drop_cachesOPTIMIZE TABLE works only for MyISAM, InnoDB, and (as of MySQL 5.0.16) ARCHIVE tables. It does not work for tables created using any other storage engine.MyISAM tables, OPTIMIZE TABLE works as follows:mysql> desc articles;
+----------------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+----------------+--------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| content | text | NO | | NULL | |
| author_id | int(11) | YES | | NULL | |
| article_title | varchar(120) | YES | | NULL | |
| article_hash | int(11) | YES | | NULL | |
+----------------+--------------+------+-----+---------+----------------+
6 rows in set (0.00 sec)mysql> select count(*) from articles where article_title like 'The%';
+----------+
| count(*) |
+----------+
| 15830 |
+----------+
1 row in set (0.63 sec)mysql> optimize table articles;
+-----------------------+----------+----------+----------+
| Table | Op | Msg_type | Msg_text |
+-----------------------+----------+----------+----------+
| books.articles | optimize | status | OK |
+-----------------------+----------+----------+----------+
1 row in set (6.27 sec)mysql> select count(*) from articles where article_title like 'The%';
+----------+
| count(*) |
+----------+
| 15830 |
+----------+
1 row in set (0.39 sec)
sudo apt-get install cpanminus
and then install module by module via cpanm
cpanm Time::Local