Error Java Heap Space

More active clients equal to more ram usage for the gateway? I currenty have 8 active clients, 3gb of ram is to low? If I change this to 8gb of ram will this resolve the java heap space error?

Initial Java Heap Size (in MB)

wrapper.java.initmemory=1024

Maximum Java Heap Size (in MB)

wrapper.java.maxmemory=8192

EDIT: There are 2 multi monitor clients, four monitors each.