Process payroll running time

TO generate a salary slip for 3000 employee ,it take in local about 10 min but on the server it take hours ,whats the problem ,how can i fix it ???

Please share some trace from your sever logs

the problem was with the ngnix server time out .
I fixed it by setting the nginx timeout config
bench config http_timeout time
bench setup supervisor
bench setup nginx
supervisorctl reload
service nginx reload