You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do we have a way to find out which routes are the problem?
fastify.register(underPressure,{maxEventLoopDelay: 1000,exposeStatusRoute: true,pressureHandler: (req,rep,type,value)=>{if(type===underPressure.TYPE_HEAP_USED_BYTES){fastify.log.warn(`too many heap bytes used: ${value}`)}elseif(type===underPressure.TYPE_RSS_BYTES){fastify.log.warn(`too many rss bytes used: ${value}`)}elseif(type==underPressure.TYPE_EVENT_LOOP_DELAY){fastify.log.warn(`reached max even loop delay: ${value}`)fastify.Sentry.captureMessage('reached max even loop delay');}rep.send('out of memory')// if you omit this line, the request will be handled normally}})
Please give me a tip/guide. I don't know how to do it.
The text was updated successfully, but these errors were encountered:
I'm sorry but I don't understand the question. The full point of under-pressure is to prevent the server from overloading, keeping it responsive at all times.
The fact that your server "go" at 33% of CPU can mean all sorts of things. Usually you are exahusting some other limited resources, such as a connection pool or an OS buffer, or file descriptor limit.
If you remove under-pressure, could you get it to go 100%.
Do we have a way to find out which routes are the problem?
Please give me a tip/guide. I don't know how to do it.
The text was updated successfully, but these errors were encountered: