cancel
Showing results for 
Search instead for 
Did you mean: 

Disabled subsystems still show log entries

aaron_bru
Champ in-the-making
Champ in-the-making
Hi all, newbie question:
I'm trying to disable some subsystems that I'm not using to save on memory, in particular imap and inbound email.
I have
imap.server.enabled=false
email.inbound.enabled=false
email.server.enabled=false
in alfresco-global.properties

but the logs still show

[management.subsystems.ChildApplicationContextFactory] [pool-2-thread-1] Starting 'imap' subsystem, ID: [imap, default]
Jul 12 10:14:03 server tomcat-sysd[15963]: 2013-07-12 10:14:03,067  INFO  [management.subsystems.ChildApplicationContextFactory] [pool-2-thread-1] Startup of 'imap' subsystem, ID: [imap, default] complete
Jul 12 10:14:03 server tomcat-sysd[15963]: 2013-07-12 10:14:03,069  INFO  [management.subsystems.ChildApplicationContextFactory] [pool-2-thread-1] Starting 'email' subsystem, ID: [email, outbound]
Jul 12 10:14:03 server tomcat-sysd[15963]: 2013-07-12 10:14:03,124  INFO  [management.subsystems.ChildApplicationContextFactory] [pool-2-thread-1] Startup of 'email' subsystem, ID: [email, outbound] complete
Jul 12 10:14:03 server tomcat-sysd[15963]: 2013-07-12 10:14:03,126  INFO  [management.subsystems.ChildApplicationContextFactory] [pool-2-thread-1] Starting 'email' subsystem, ID: [email, inbound]
Jul 12 10:14:03 server tomcat-sysd[15963]: 2013-07-12 10:14:03,212  INFO  [management.subsystems.ChildApplicationContextFactory] [pool-2-thread-1] Startup of 'email' subsystem, ID: [email, inbound] complete

Is this intended behaviour, or does it mean that the subsystems are still on?
I've checked JMX, there are no config options under Alfresco there except for VirtServerRegistry, nothing about imap or email.

How can I check if the subsystems are on or not?
Thanks in advance
-Aaron
3 REPLIES 3

afaust
Legendary Innovator
Legendary Innovator
Hello,

it is indeed intended behavior. The flags don't actually govern the startup of the Subsystem, but the initialization of a component in that Subsystem. I.e. if you set imap.server.enabled=false the IMAP Subsystem will still be started, but the ImapServer / ImapService configured in that subsystem will not spin up and be made available on port 143.

Regards
Axel

aaron_bru
Champ in-the-making
Champ in-the-making
thanks Axel,
I guess that's good enough for me. It would be nice to be able to completely disable the subsystem, but I'm guessing that would mean removing the code or something.
-Aaron

mrogers
Star Contributor
Star Contributor
Yes.   But the enable/disable flag is itself contained within the subsystem.   So you need the subsystem to start in order to read the property to stop the rest of the execution.   

If you really want to get rid of a subsystem then you need to override the subsystem definition through the spring configuration