pratik_asabe Could you run this SQL query and make sure the change is actually in affect:
SHOW GLOBAL VARIABLES LIKE 'innodb_flush_log%';
Even on a slow server changing the
innodb_flush_log_at_trx_commit
Value should have a noticable impact. Run the above query and see if innodb_flush_log_at_trx_commit is set to 2 and has no spaces or typos etc.
Sidenote: Make sure you understand what this setting does. It has risks. Same goes for most optimization settings. What some people (here and elsewhere) think is acceptable risk is not always best practice. Depends on your usecase.