Re: James 3.8, JPA Keeps Crashing // ActiveMQ Issue
Benoit TELLIER <[email protected]> Sun, 12 Apr 2026 03:53:07 +0000
| Newsgroups | gmane.comp.jakarta.james.user |
|---|---|
| Message-ID | <[email protected]> |
---=Part.1.156ecfcc1f463532.19d7fd26208.b7f2793d847c992c=- Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Accept-Language: fr-FR, en-US, vi-VN, ru-RU, ar-TN, it-IT, de-DE Content-Language: fr-FR Hello The issue is that 77mb do not fit in auto configured 20mb=2E Ren=C3= =A9 opened https://github=2Ecom/apache/james-project/pull/2999 which allows= configuring the memory limit and would allow you a workaround=2E --=C2=A0 = Best regards, Benoit TELLIER General manager of Linagora VIETNAM=2E Prod= uct owner for Twake-Mail product=2E Chairman of the Apache James project=2E= Mail: btellier@linagora=2Ecom Tel: (0033) 6 77 26 04 58 (WhatsApp, Signal= ) Le avr=2E 11, 2026 9:53 PM, de Gilberto Espinoza <gespinoza75@gmail=2Ec= om>Dear Rene, Thanks for the reply=2E I was able to locate the activemq fo= lder and deleted the files=2E That resolved the issue=2E I'll review the i= nformation at the link you provided about migration=2E It seems it is not a= straightforward undertaking=2E @Benoit: The file size is about 77=2E5MB= =2E I do experience frequent memory issues, mainly because I run on a Linu= x Linode with only 2GB of RAM=2E But this was the first time I experience t= he persistent storage issue with activemq=2E Here is the content of the jv= m=2E properties file: # =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D Extra JVM System Properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D # To avoid clutter on the command line, any propertie= s in this file will be added as system properties on server start=2E # Exa= mple: If you need an option -Dmy=2Eproperty=3Dwhatever, you can instead add= it here as # my=2Eproperty=3Dwhatever # (Optional)=2E String (size, integ= er + size units, example: `12 KIB`, supported units are bytes KIB MIB GIB T= IB)=2E Defaults to 100KIB=2E # This governs the threshold MimeMessageInputS= treamSource relies on for storing MimeMessage content on disk=2E # Below, d= ata is stored in memory=2E Above data is stored on disk=2E # Lower values w= ill lead to longer processing time but will minimize heap memory usage=2E M= odern SSD hardware # should however support a high throughput=2E Higher val= ues will lead to faster single mail processing at the cost # of higher heap= usage=2E #james=2Emessage=2Ememory=2Ethreshold=3D12K # Optional=2E Boolea= n=2E Defaults to false=2E Recommended value is false=2E # Should MimeMessag= eWrapper use a copy of the message in memory? Or should bigger message exce= eding james=2Emessage=2Ememory=2Ethreshold # be copied to temporary files? = #james=2Emessage=2Eusememorycopy=3Dfalse # Mode level of resource leak det= ection=2E It is used to detect a resource not be disposed of before it's ga= rbage-collected=2E # Example `MimeMessageInputStreamSource` # Optional=2E A= llowed values are: none, simple, advanced, testing # - none: Disables res= ource leak detection=2E # - simple: Enables output a simplistic error log= if a leak is encountered and would free the resources (default)=2E # - a= dvanced: Enables output an advanced error log implying the place of allocat= ion of the underlying object and would free resources=2E # - testing: Ena= bles output an advanced error log implying the place of allocation of the u= nderlying object and rethrow an error, that action is being taken by the de= velopment team=2E #james=2Elifecycle=2Eleak=2Edetection=2Emode=3Dsimple # = Should we add the host in the MDC logging context for incoming IMAP, SMTP, = POP3? Doing so, a DNS resolution # is attempted for each incoming connectio= n, which can be costly=2E Remote IP is always added to the logging context= =2E # Optional=2E Boolean=2E Defaults to true=2E #james=2Eprotocols=2Emdc= =2Ehostname=3Dtrue # Manage netty leak detection level see netty=2Eio/wiki= /reference-counted-objects=2Ehtml#leak-detection-levels # io=2Enetty=2Eleak= Detection=2Elevel=3DSIMPLE # Should James exit on Startup error? Boolean, = defaults to true=2E This prevents partial startup=2E # james=2Eexit=2Eon=2E= startup=2Eerror=3Dtrue # Fails explicitly on missing configuration file ra= ther that taking implicit values=2E Defautls to false=2E # james=2Efail=2Eo= n=2Emissing=2Econfiguration=3Dtrue # JMX, when enable causes RMI to plan S= ystem=2Egc every hour=2E Set this instead to once every 1000h=2E sun=2Ermi= =2Edgc=2Eserver=2EgcInterval=3D3600000000 sun=2Ermi=2Edgc=2Eclient=2EgcInte= rval=3D3600000000 # Automatically generate a JMX password upon start=2E CL= I is able to retrieve this password=2E james=2Ejmx=2Ecredential=2Egeneratio= n=3Dtrue # Disable Remote Code Execution feature from JMX # CF github=2Eco= m/AdoptOpenJDK/openjdk-jdk11/blob/19fb8f93c59dfd791f62d41f332db9e306bc1422/= src/java=2Emanagement/share/classes/com/sun/jmx/remote/security/MBeanServer= AccessController=2Ejava#L646 jmx=2Eremote=2Ex=2Emlet=2Eallow=2EgetMBeansFro= mURL=3Dfalse -Xms1024M Thanks, Gil Espinoza On Tue, Apr 7, 2026 at 1:17= =E2=80=AFPM Benoit TELLIER wrote: > Hi Gilberto > > Out of curio= sity, how large is the video file? > > Clearing the faulty mail is ne= eded to restore the server=2E Backup then > clear files for ActiveMQ=2E= =2E=2E > > Can you also share the JVM options used to run James? >= > -- > > Best regards, > > Benoit TELLIER > > General= manager of Linagora VIETNAM=2E > Product owner for Twake-Mail product= =2E > Chairman of the Apache James project=2E > > Mail: btellier@l= inagora=2Ecom > Tel: (0033) 6 77 26 04 58 (WhatsApp, Signal) > > &= gt; Le avr=2E 7, 2026 10:47 AM, de Rene Cordier Hi > Gilberto, > >= I ain't much of a JPA expert but I will try to answer to the best of my &g= t; capabilities, hoping it helps you=2E > > I think the EmbeddedActiv= eMq class creates a default activemq broker > with default storage setti= ngs, which must be around 20mb=2E The attachment > of your user seems sl= itghly bigger than this limit, filling up the > queue=2E James keeps cra= shing then I guess as the message keeps staying in > the queue=2E > &= gt; Is the faulty email important to keep or not? If not can try to clear &= gt; away the queue=2E The data of activemq should be inside the container a= t > /var/store/activemq=2E > > I think you can try to clean what's= in > /var/store/activemq/brokers/KahaDB/* (cf > > github=2Ecom/ap= ache/james-project/blob/3=2E8=2Ex/server/queue/queue-activemq/src/main/java= /org/apache/james/queue/activemq/EmbeddedActiveMQ=2Ejava > ) > > I= guess you could back up the data as well, from /var/store/activemq, &= gt; and reinject the data in an external volume with more space that you ca= n > mount then in /var/store/activemq ? > > There is unfortun= ately no configuration for ActiveMQ storage space=2E The > configuration= file would be activemq=2Eproperties, but I think it is just > about som= e metrics configuration so far=2E But maybe that could be a nice > contr= ibution to propose? > > Regarding the migration from 3=2E8 to 3=2E9, = here there is a file for > upgrade instructions in general: > > gi= thub=2Ecom/apache/james-project/blob/master/upgrade-instructions=2Emd#390-v= ersion > > I must admit people need to figure out which upgrade conce= rns which > product, if concerned or not, it's not really practical sorr= y=2E We got > room for improvement here I think too=2E > > Let me = know if this helps you=2E > > Good luck :) > > Rene=2E > >= ; On 4/3/26 08:05, Gilberto Espinoza wrote: > > Hi Apache James Brain= Trust, > > > > I am having issues with my James server=2E I am= running James 3=2E8, JPA > in a > > Docker Container=2E A user wa= s attempting to email a large video file > and > > that seems to h= ave crashed the server=2E I get this message in the log > file: > >= ; > > [WARN ] o=2Ea=2Ea=2Eb=2Er=2EQueue - Usage(Main:store:queue://sp= ool:store) > > percentUsage=3D100%, usage=3D20779975, limit=3D2076554= 8, > > percentUsageMinDelta=3D1%;Parent:Usage(Main:store) percentUsag= e=3D100%, > > usage=3D20779975, limit=3D20765548, percentUsageMinDelt= a=3D1%: Persistent > store > > is Full, 100% of 20765548=2E Stoppi= ng producer > > (ID:7a04cd6de807-43041-1775136440917-5:2:1:1) to prev= ent flooding > > queue://spool=2E > > > > I am struggling= to figure out how to resolve this issue (I found this > link, > >= but I am unable to figure where the ActiveMQ files are located) ( > >= ; > knowledge=2Einformatica=2Ecom/s/article/Persistent-store-is-Full-100= -of-Stopping-producer-ID-to-prevent-flooding-error-in-DataExchange-logs?lan= guage=3Den_US > > > ; > )=2E > > > > I would apprec= iate your help in resolving this issue (restarting the > server > >= ; has not helped)=2E How do you stop the "producer"? > > > > Al= so, where can I find the configuration file for ActiveMQ? > > > &g= t; I would also like to know how to back up the database files, if that >= ; is > > possible? > > > > Is there any documentation on = how to migrate from 3=2E8 to 3=2E9? > > > > I look forward to a= ny feedback=2E > > > > Best regards, > > > > Gil Es= pinoza > > > > ------------------------------------------------= --------------------- > To unsubscribe, e-mail: server-user-unsubscribe@= james=2Eapache=2Eorg > For additional commands, e-mail: server-user-help= @james=2Eapache=2Eorg ---=Part.1.156ecfcc1f463532.19d7fd26208.b7f2793d847c992c=---