Posts

Showing posts from February, 2023

Identifying Out of Memory events for App Pool with PowerShell"?

  Are you tired of your app pool acting up and running out of memory? Don't worry, we've got you covered. In this blog post, we're going to explore how to troubleshoot the issue and identify which app pools are running out of memory using PowerShell. First things first, let's talk about why this issue is happening. When an app pool is running out of memory, it's usually due to a memory leak in your code or a configuration issue. This can cause your app pool to recycle, which can result in slower performance and unhappy users. But fear not, with the power of PowerShell, we can easily identify which app pools are experiencing this issue. Here's a PowerShell command that will help you identify the event logs for a specific app pool: $LogName = 'System' $EventID = 5117 $AppPoolName = 'YourAppPoolName' $Query = @" <QueryList> <Query Path=' $LogName '> <Select Path=' $LogName '> *[System[(EventID=...