Added maxpermsize to startup script
Merge with master