You mentioned in your post that you put 6gb RAM when Apple only suggests 4gb. Can you tell me which memory did you use?
Download a very helpful app called Mactracker and it will tell you everything about your iMac and everything apple; yes your machine will support up to 6Gb RAM.