Hi ,
Try using the Script which is mentioned in the following link in ordert o connect to JBossAS7 using VisualVM. (Place this script inside your JBoss bin directory)
https://github.com/johnaoahra80/jboss-as-tool-integration/blob/master/visualvm/visualvm.sh