Few hacks for developers daily use.

Posted: April 22, 2014 in Uncategorized
Tags: , , ,
Increase MySQL connections at run time without restarting the server – set global max_connections = 500

mysql>  select @@max_connections;
+——————-+
| @@max_connections |
+——————-+
|               151 |
+——————-+
1 row in set (0.00 sec)

mysql>  set global max_connections = 500;
Query OK, 0 rows affected (0.03 sec)

mysql>  select @@max_connections;
+——————-+
| @@max_connections |
+——————-+
|               500 |
+——————-+
1 row in set (0.00 sec)

View logs with colour
tail -f repository/logs/wso2carbon.log | awk ‘
{print “33[32m” $0 “33[39m”}
/ERROR/ {print “33[31m” $0 “33[39m”}
/FATAL/ {print “33[31m” $0 “33[39m”}
/WARN/ {print “33[33m” $0 “33[39m”}

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s