Sounds a bit strange. Do you have some strange memory settings in a JAVA_OPTS env var that gets picked up? Not that it explains the differing in behaviour.
I found the reason. My PC memory is not enough for my JAVA Xmx setting. I released some softwares and then the shutdown works ok now.