# 主账 8180 掉线诊断 $ErrorActionPreference = 'Continue' Write-Output '=== java inquiry-new ===' Get-CimInstance Win32_Process -Filter "Name='java.exe'" | ForEach-Object { if ($_.CommandLine -like '*inquiry-new*' -or $_.CommandLine -like '*8180*') { "pid=$($_.ProcessId) $($_.CommandLine.Substring(0, [Math]::Min(180, $_.CommandLine.Length)))" } } Write-Output '=== recent stdout error lines ===' Select-String -Path 'E:\wwwroot\inquiry-new\logs\stdout.log' -Pattern 'ERROR|Exception|Started Jeecg|Tomcat started|APPLICATION FAILED' | Select-Object -Last 20 | ForEach-Object { $_.Line.Substring(0, [Math]::Min(220, $_.Line.Length)) } Write-Output '=== file times ===' Get-Item 'E:\wwwroot\inquiry-new\logs\stdout.log','E:\wwwroot\inquiry-new\logs\stderr.log' | ForEach-Object { "$($_.Name) len=$($_.Length) mtime=$($_.LastWriteTime)" } Write-Output 'DIAG2_DONE'