You are using 32 bit VM (Java HotSpot(TM) Client VM) which can be mapped to maximum 4G (Only 2 GB in reality) 2^32 address locations Maximum Java heap size of a 32-bit JVM on a 64-bit OS
Error message suggest you are using 5GB heap memory which is not supported on 32 bit architecture
Invalid maximum heap size: -Xmx5096m The specified size exceeds the maximum representable size.
Could not create the Java virtual machine.
You can modify the -Xmx parameter to use anythinng <=2g should work here