I have handle the media project in codeIgniter framework.
I have completed the project. but I should load testing in JMeter and mention 100 users.
Running the successfully almost 50 users, then often display Database not connection error.
Refer the Codeigniter Database Settings
$active_group = 'default';
$query_builder = TRUE;
$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost',
'username' => 'root',
'password' => '',
'database' => 'sample',
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => TRUE,
'cache_on' => FALSE,
'cachedir' => 'application/cache/db_cache',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array(),
'save_queries' => TRUE
);
Refer the screenshot for JMeter image
How to fix that issue ?
Thanks Advance !!!