I really advise you to read this first.
If you conclude after that that you need to increase the permgen for the Jenkins process, doing it will depend on how you installed jenkins (custom install, deb, rpm, pkg, exe...). In that case you will need to tell us about your environment for guidance on how to pass those parameters to your process.