Set http.globalAgent.maxSockets

We are encountering an issue when we are doing a lot of requests using HTTP Request. As a solution, some people recommend to put http.globalAgent.maxSockets=100; paramater to seetings.js but when we put like this we are getting error. Can anyone help me on this please? I mean how to set this paramater. Thanks