I am running the Java 1.6.0_22
What is required to fix the error below?
Thank you.

%%%%%%%%%%%%%%%%%
Failure communicating with remote server. Please try again later.

Debug message: Java heap space

Exception:

java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.io.ByteArrayOutputStream.write(Unknown Source)
at javax.mail.internet.MimeMessage.writeTo(MimeMessag e.java:1765)
at javax.mail.internet.MimeMessage.writeTo(MimeMessag e.java:1718)
at javax.mail.internet.MimeMessage.(MimeMessage.java: 234)
at com.zimbra.cs.mime.Mime$FixedMimeMessage.(Mime.jav a:90)
at com.zimbra.cs.mime.ExpandMimeMessage$ForkMimeMessa ge.onModification(ExpandMimeMessage.java:49)
at com.zimbra.cs.mime.TnefConverter.visitMultipart(Tn efConverter.java:149)
at com.zimbra.cs.mime.MimeVisitor.accept(MimeVisitor. java:223)
at com.zimbra.cs.mime.MimeVisitor.accept(MimeVisitor. java:176)
at com.zimbra.cs.mime.ExpandMimeMessage.expand(Expand MimeMessage.java:86)
at com.zimbra.cs.mime.ParsedMessage.init(ParsedMessag e.java:286)
at com.zimbra.cs.mime.ParsedMessage.initialize(Parsed Message.java:229)
at com.zimbra.cs.mime.ParsedMessage.initialize(Parsed Message.java:223)
at com.zimbra.cs.mime.ParsedMessage.(ParsedMessage.ja va:178)
at com.zimbra.cs.mailbox.InitialSync.saveMessage(Init ialSync.java:1185)
at com.zimbra.cs.mailbox.InitialSync.syncMessagesAsTg z(InitialSync.java:1027)
at com.zimbra.cs.mailbox.InitialSync.syncMessages(Ini tialSync.java:960)
at com.zimbra.cs.mailbox.InitialSync.syncMessagelikeI tems(InitialSync.java:433)
at com.zimbra.cs.mailbox.InitialSync.initialFolderSyn c(InitialSync.java:323)
at com.zimbra.cs.mailbox.InitialSync.prioritySync(Ini tialSync.java:397)
at com.zimbra.cs.mailbox.InitialSync.initialFolderSyn c(InitialSync.java:376)
at com.zimbra.cs.mailbox.InitialSync.initialFolderSyn c(InitialSync.java:387)
at com.zimbra.cs.mailbox.InitialSync.resume(InitialSy nc.java:198)
at com.zimbra.cs.mailbox.InitialSync.resume(InitialSy nc.java:182)
at com.zimbra.cs.mailbox.MailboxSync.sync(MailboxSync .java:177)
at com.zimbra.cs.mailbox.ZcsMailbox.sync(ZcsMailbox.j ava:119)
at com.zimbra.cs.service.offline.OfflineSync.handle(O fflineSync.java:44)
at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEng ine.java:420)
at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.jav a:274)
at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.jav a:158)
at com.zimbra.soap.SoapServlet.doWork(SoapServlet.jav a:291)

If issue persists please post description and debug information here.
%%%%%%%%%%%%%%%%%