Intermittent 500 error in gitlab while accessing via https

Hi,

We are using GitLab 10.6.4 CE version and there is intermittent 500 error in gitlab while accessing via https or while cloning.
=> production logs were flooded with the ‘internal server error’

cat /var/log/gitlab/gitlab-rails/production.log | grep “Internal Server Error”

Completed 500 Internal Server Error in 1892ms (ActiveRecord: 81.5ms)

Completed 500 Internal Server Error in 71ms (ActiveRecord: 46.6ms)

Completed 500 Internal Server Error in 78ms (ActiveRecord: 47.2ms)

Completed 500 Internal Server Error in 60ms (ActiveRecord: 35.6ms)

Completed 500 Internal Server Error in 1190ms (ActiveRecord: 15.7ms)

Completed 500 Internal Server Error in 65ms (ActiveRecord: 35.6ms)

Completed 500 Internal Server Error in 58ms (ActiveRecord: 32.7ms)

Completed 500 Internal Server Error in 90ms (ActiveRecord: 55.2ms)

Completed 500 Internal Server Error in 109ms (ActiveRecord: 73.6ms)

Completed 500 Internal Server Error in 74ms (ActiveRecord: 48.7ms)

Completed 500 Internal Server Error in 6734ms (ActiveRecord: 40.5ms)

production.json_log

Parameters: {“service”=>“git-upload-pack”, “namespace_id”=>“abc/voip”, “project_id”=>“zxxprbmx_M16_2.git”}

Completed 500 Internal Server Error in 1892ms (ActiveRecord: 81.5ms)

==> we have tried to gitlab reconfigure and restart, but still the error is throwing and also we could see that the worker threads utilization was high.

is there any solution or fix for these types of error ?

Regards,
Sachin