Skip to content
Contents
GuidesOpenWrt

v2rayA runs out of memory after starting TProxy and Xray still occupies port 20171

After memory exhaustion, the proxy fails to restart, possibly because the old child process still holds the listening port. Separate the port errors from the first OOM and the second restart.

Applies to · COMFAST CF-WR632AX · 512 MiB · v2rayA 2.2.7.5-r1 · Xray 26.3.27-r1

What to check

First check the killed process in the OOM log, then examine the owner and parent PID of process 20171.

Connect over Ethernet and run the following commands in an SSH session on the router.

free
logread -e oom
ps w | grep -i '[x]ray'

How to interpret the result

First, check the OOM log to identify the process mentioned. Then verify what process is actually listening on port 20171. If the original Xray instance is still running, remove it through the service management workflow. If no process is listening, inspect the first error message from the newly spawned process to avoid inadvertently stopping other services.

Verify and recover

Use the service manager to restore a single instance. Check the listener, available memory and ordinary traffic without terminating unrelated proxy processes.

Related guide · Check for an out-of-memory event when the OpenWrt interface stops responding

Explore hardware

Devices mentioned

Comments