The error is happening only on the vhost1, vhost2 is fine.
On this server mainly we run udp streams on ports and then stream it to end clients in hls. The error also appears on (onAppStart, onAppStop, onConnectAccept, onDisconnect) but most records are on onRTPSessionDestroy.
Am I missing something, same setup on 4.1.0 on other server is working without this error, is there a known issue in this version.
Yes, the argument is just to instruct Wowza what OS you are building the module on. Once built it will work on any OS.
Another cause of this error could be the jar file is missing.
Are you copying the development environment over to the production server? If you are overwriting the production server with bin/ contents from the development server, you will need reformat the command line used to start Wowza to detect the OS.
It may be that I am not fully understanding what you are doing, so if this information is not helpful, please provide more detail it possible.