You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Torsten Mielke (Created) (JIRA)" <ji...@apache.org> on 2011/11/02 11:03:32 UTC

[jira] [Created] (AMQ-3573) Hardcoded defaults for systemUsage not suitable for out of the box

Hardcoded defaults for systemUsage not suitable for out of the box 
-------------------------------------------------------------------

                 Key: AMQ-3573
                 URL: https://issues.apache.org/jira/browse/AMQ-3573
             Project: ActiveMQ
          Issue Type: Improvement
          Components: Broker
    Affects Versions: 5.5.1
            Reporter: Torsten Mielke


Right now the default activemq.xml has the entire <systemUsage> section commented out. If commented, then the default systemUsage as defined in BrokerService.getSystemUsage() applies and uses these limits:

memoryLimit 64 MB
storeLimit: 10 GB
tempLimit: 100 GB

I don't think these are good default values as in the worst case the broker may use 110 GB of disk space. Many runtime environments will not have that much disk space and are therefore in danger of running out of disk space completely. 
IMHO some more sensitive defaults would be 

memoryLimit 64 MB
storeLimit:  1 GB
tempLimit:   1 GB

to prevent the broker from using too much disk space by default. 
I believe most users of ActiveMQ are unaware of these defaults and probably don't expect the broker to use up to 110 GB of their disk. 

If anyone really needs large store and temp limit, they should explicitly configure for it.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AMQ-3573) Hardcoded defaults for systemUsage not suitable for out of the box

Posted by "Claus Ibsen (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13143032#comment-13143032 ] 

Claus Ibsen commented on AMQ-3573:
----------------------------------

Isn't there an API in JDK6+ now that you can ask for disk space?

                
> Hardcoded defaults for systemUsage not suitable for out of the box 
> -------------------------------------------------------------------
>
>                 Key: AMQ-3573
>                 URL: https://issues.apache.org/jira/browse/AMQ-3573
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 5.5.1
>            Reporter: Torsten Mielke
>              Labels: default, systemUsage
>         Attachments: AMQ-3573.patch
>
>
> Right now the default activemq.xml has the entire <systemUsage> section commented out. If commented, then the default systemUsage as defined in BrokerService.getSystemUsage() applies and uses these limits:
> memoryLimit 64 MB
> storeLimit: 10 GB
> tempLimit: 100 GB
> I don't think these are good default values as in the worst case the broker may use 110 GB of disk space. Many runtime environments will not have that much disk space and are therefore in danger of running out of disk space completely. 
> IMHO some more sensitive defaults would be 
> memoryLimit 64 MB
> storeLimit:  1 GB
> tempLimit:   1 GB
> to prevent the broker from using too much disk space by default. 
> I believe most users of ActiveMQ are unaware of these defaults and probably don't expect the broker to use up to 110 GB of their disk. 
> If anyone really needs large store and temp limit, they should explicitly configure for it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (AMQ-3573) Hardcoded defaults for systemUsage not suitable for out of the box

Posted by "Rob Davies (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rob Davies reassigned AMQ-3573:
-------------------------------

    Assignee: Rob Davies
    
> Hardcoded defaults for systemUsage not suitable for out of the box 
> -------------------------------------------------------------------
>
>                 Key: AMQ-3573
>                 URL: https://issues.apache.org/jira/browse/AMQ-3573
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 5.5.1
>            Reporter: Torsten Mielke
>            Assignee: Rob Davies
>              Labels: default, systemUsage
>         Attachments: AMQ-3573.patch
>
>
> Right now the default activemq.xml has the entire <systemUsage> section commented out. If commented, then the default systemUsage as defined in BrokerService.getSystemUsage() applies and uses these limits:
> memoryLimit 64 MB
> storeLimit: 10 GB
> tempLimit: 100 GB
> I don't think these are good default values as in the worst case the broker may use 110 GB of disk space. Many runtime environments will not have that much disk space and are therefore in danger of running out of disk space completely. 
> IMHO some more sensitive defaults would be 
> memoryLimit 64 MB
> storeLimit:  1 GB
> tempLimit:   1 GB
> to prevent the broker from using too much disk space by default. 
> I believe most users of ActiveMQ are unaware of these defaults and probably don't expect the broker to use up to 110 GB of their disk. 
> If anyone really needs large store and temp limit, they should explicitly configure for it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AMQ-3573) Hardcoded defaults for systemUsage not suitable for out of the box

Posted by "Rob Davies (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13256214#comment-13256214 ] 

Rob Davies commented on AMQ-3573:
---------------------------------

In junit tests -  fixed warning messages can be generated for not enough disk space if the directory doesn't exist
Subversion: Committed revision 1327379.
                
> Hardcoded defaults for systemUsage not suitable for out of the box 
> -------------------------------------------------------------------
>
>                 Key: AMQ-3573
>                 URL: https://issues.apache.org/jira/browse/AMQ-3573
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 5.5.1
>            Reporter: Torsten Mielke
>            Assignee: Rob Davies
>              Labels: default, systemUsage
>             Fix For: 5.6.0
>
>         Attachments: AMQ-3573.patch
>
>
> Right now the default activemq.xml has the entire <systemUsage> section commented out. If commented, then the default systemUsage as defined in BrokerService.getSystemUsage() applies and uses these limits:
> memoryLimit 64 MB
> storeLimit: 10 GB
> tempLimit: 100 GB
> I don't think these are good default values as in the worst case the broker may use 110 GB of disk space. Many runtime environments will not have that much disk space and are therefore in danger of running out of disk space completely. 
> IMHO some more sensitive defaults would be 
> memoryLimit 64 MB
> storeLimit:  1 GB
> tempLimit:   1 GB
> to prevent the broker from using too much disk space by default. 
> I believe most users of ActiveMQ are unaware of these defaults and probably don't expect the broker to use up to 110 GB of their disk. 
> If anyone really needs large store and temp limit, they should explicitly configure for it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (AMQ-3573) Hardcoded defaults for systemUsage not suitable for out of the box

Posted by "Rob Davies (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rob Davies resolved AMQ-3573.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 5.6.0

Added warning and error messages is SystemUsage values cannot be met by the system.
Changed defaults to:
64mb for memory
50GB for temp store
100GB for store
The GB value was being incorrectly calculated
resolved by SVN revision 1235261
                
> Hardcoded defaults for systemUsage not suitable for out of the box 
> -------------------------------------------------------------------
>
>                 Key: AMQ-3573
>                 URL: https://issues.apache.org/jira/browse/AMQ-3573
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 5.5.1
>            Reporter: Torsten Mielke
>            Assignee: Rob Davies
>              Labels: default, systemUsage
>             Fix For: 5.6.0
>
>         Attachments: AMQ-3573.patch
>
>
> Right now the default activemq.xml has the entire <systemUsage> section commented out. If commented, then the default systemUsage as defined in BrokerService.getSystemUsage() applies and uses these limits:
> memoryLimit 64 MB
> storeLimit: 10 GB
> tempLimit: 100 GB
> I don't think these are good default values as in the worst case the broker may use 110 GB of disk space. Many runtime environments will not have that much disk space and are therefore in danger of running out of disk space completely. 
> IMHO some more sensitive defaults would be 
> memoryLimit 64 MB
> storeLimit:  1 GB
> tempLimit:   1 GB
> to prevent the broker from using too much disk space by default. 
> I believe most users of ActiveMQ are unaware of these defaults and probably don't expect the broker to use up to 110 GB of their disk. 
> If anyone really needs large store and temp limit, they should explicitly configure for it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (AMQ-3573) Hardcoded defaults for systemUsage not suitable for out of the box

Posted by "Torsten Mielke (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Torsten Mielke updated AMQ-3573:
--------------------------------

    Attachment: AMQ-3573.patch

Attaching a possible patch.
                
> Hardcoded defaults for systemUsage not suitable for out of the box 
> -------------------------------------------------------------------
>
>                 Key: AMQ-3573
>                 URL: https://issues.apache.org/jira/browse/AMQ-3573
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 5.5.1
>            Reporter: Torsten Mielke
>              Labels: default, systemUsage
>         Attachments: AMQ-3573.patch, AMQ-3573.patch
>
>
> Right now the default activemq.xml has the entire <systemUsage> section commented out. If commented, then the default systemUsage as defined in BrokerService.getSystemUsage() applies and uses these limits:
> memoryLimit 64 MB
> storeLimit: 10 GB
> tempLimit: 100 GB
> I don't think these are good default values as in the worst case the broker may use 110 GB of disk space. Many runtime environments will not have that much disk space and are therefore in danger of running out of disk space completely. 
> IMHO some more sensitive defaults would be 
> memoryLimit 64 MB
> storeLimit:  1 GB
> tempLimit:   1 GB
> to prevent the broker from using too much disk space by default. 
> I believe most users of ActiveMQ are unaware of these defaults and probably don't expect the broker to use up to 110 GB of their disk. 
> If anyone really needs large store and temp limit, they should explicitly configure for it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Reopened] (AMQ-3573) Hardcoded defaults for systemUsage not suitable for out of the box

Posted by "Timothy Bish (Reopened) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish reopened AMQ-3573:
-------------------------------


The fix breaks the unit tests in Eclipse and other tools where the temp dir value is not set as an Absolute path.

adding the following after the tmpDir null check resolves this.

{noformat}
            if (!tmpDir.isAbsolute()) {
                tmpDir = new File(tmpDirPath);
            }
{noformat}
                
> Hardcoded defaults for systemUsage not suitable for out of the box 
> -------------------------------------------------------------------
>
>                 Key: AMQ-3573
>                 URL: https://issues.apache.org/jira/browse/AMQ-3573
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 5.5.1
>            Reporter: Torsten Mielke
>            Assignee: Rob Davies
>              Labels: default, systemUsage
>             Fix For: 5.6.0
>
>         Attachments: AMQ-3573.patch
>
>
> Right now the default activemq.xml has the entire <systemUsage> section commented out. If commented, then the default systemUsage as defined in BrokerService.getSystemUsage() applies and uses these limits:
> memoryLimit 64 MB
> storeLimit: 10 GB
> tempLimit: 100 GB
> I don't think these are good default values as in the worst case the broker may use 110 GB of disk space. Many runtime environments will not have that much disk space and are therefore in danger of running out of disk space completely. 
> IMHO some more sensitive defaults would be 
> memoryLimit 64 MB
> storeLimit:  1 GB
> tempLimit:   1 GB
> to prevent the broker from using too much disk space by default. 
> I believe most users of ActiveMQ are unaware of these defaults and probably don't expect the broker to use up to 110 GB of their disk. 
> If anyone really needs large store and temp limit, they should explicitly configure for it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (AMQ-3573) Hardcoded defaults for systemUsage not suitable for out of the box

Posted by "Timothy Bish (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish resolved AMQ-3573.
-------------------------------

    Resolution: Fixed

Applied fix to fix failing tests in Eclipse
                
> Hardcoded defaults for systemUsage not suitable for out of the box 
> -------------------------------------------------------------------
>
>                 Key: AMQ-3573
>                 URL: https://issues.apache.org/jira/browse/AMQ-3573
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 5.5.1
>            Reporter: Torsten Mielke
>            Assignee: Rob Davies
>              Labels: default, systemUsage
>             Fix For: 5.6.0
>
>         Attachments: AMQ-3573.patch
>
>
> Right now the default activemq.xml has the entire <systemUsage> section commented out. If commented, then the default systemUsage as defined in BrokerService.getSystemUsage() applies and uses these limits:
> memoryLimit 64 MB
> storeLimit: 10 GB
> tempLimit: 100 GB
> I don't think these are good default values as in the worst case the broker may use 110 GB of disk space. Many runtime environments will not have that much disk space and are therefore in danger of running out of disk space completely. 
> IMHO some more sensitive defaults would be 
> memoryLimit 64 MB
> storeLimit:  1 GB
> tempLimit:   1 GB
> to prevent the broker from using too much disk space by default. 
> I believe most users of ActiveMQ are unaware of these defaults and probably don't expect the broker to use up to 110 GB of their disk. 
> If anyone really needs large store and temp limit, they should explicitly configure for it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AMQ-3573) Hardcoded defaults for systemUsage not suitable for out of the box

Posted by "Torsten Mielke (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13143029#comment-13143029 ] 

Torsten Mielke commented on AMQ-3573:
-------------------------------------

Thanks for your input Gary. 
I have repeatedly seen companies deploying ActiveMQ in production where the underlying disk had only 10-30 GB of free space left. 
Just this week I found a company that deployed ActiveMQ with almost default settings (commented <systemUsage> in ActiveMQ) and they only had 6 GB of hard disk space available. 
I believe this happens fairly often. 

I can see that the limits I proposed may seem a bit low but assuming there will be up to 110GB disk space available by default may be too much? 
Also, this will not be apparent from looking at the default conf (see AMQ-3574). So I presume most users of ActiveMQ are unaware of these high default limits.

                
> Hardcoded defaults for systemUsage not suitable for out of the box 
> -------------------------------------------------------------------
>
>                 Key: AMQ-3573
>                 URL: https://issues.apache.org/jira/browse/AMQ-3573
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 5.5.1
>            Reporter: Torsten Mielke
>              Labels: default, systemUsage
>         Attachments: AMQ-3573.patch
>
>
> Right now the default activemq.xml has the entire <systemUsage> section commented out. If commented, then the default systemUsage as defined in BrokerService.getSystemUsage() applies and uses these limits:
> memoryLimit 64 MB
> storeLimit: 10 GB
> tempLimit: 100 GB
> I don't think these are good default values as in the worst case the broker may use 110 GB of disk space. Many runtime environments will not have that much disk space and are therefore in danger of running out of disk space completely. 
> IMHO some more sensitive defaults would be 
> memoryLimit 64 MB
> storeLimit:  1 GB
> tempLimit:   1 GB
> to prevent the broker from using too much disk space by default. 
> I believe most users of ActiveMQ are unaware of these defaults and probably don't expect the broker to use up to 110 GB of their disk. 
> If anyone really needs large store and temp limit, they should explicitly configure for it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (AMQ-3573) Hardcoded defaults for systemUsage not suitable for out of the box

Posted by "Torsten Mielke (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Torsten Mielke updated AMQ-3573:
--------------------------------

    Attachment:     (was: AMQ-3573.patch)
    
> Hardcoded defaults for systemUsage not suitable for out of the box 
> -------------------------------------------------------------------
>
>                 Key: AMQ-3573
>                 URL: https://issues.apache.org/jira/browse/AMQ-3573
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 5.5.1
>            Reporter: Torsten Mielke
>              Labels: default, systemUsage
>         Attachments: AMQ-3573.patch
>
>
> Right now the default activemq.xml has the entire <systemUsage> section commented out. If commented, then the default systemUsage as defined in BrokerService.getSystemUsage() applies and uses these limits:
> memoryLimit 64 MB
> storeLimit: 10 GB
> tempLimit: 100 GB
> I don't think these are good default values as in the worst case the broker may use 110 GB of disk space. Many runtime environments will not have that much disk space and are therefore in danger of running out of disk space completely. 
> IMHO some more sensitive defaults would be 
> memoryLimit 64 MB
> storeLimit:  1 GB
> tempLimit:   1 GB
> to prevent the broker from using too much disk space by default. 
> I believe most users of ActiveMQ are unaware of these defaults and probably don't expect the broker to use up to 110 GB of their disk. 
> If anyone really needs large store and temp limit, they should explicitly configure for it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (AMQ-3573) Hardcoded defaults for systemUsage not suitable for out of the box

Posted by "Torsten Mielke (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13143029#comment-13143029 ] 

Torsten Mielke edited comment on AMQ-3573 at 11/3/11 10:25 AM:
---------------------------------------------------------------

Thanks for your input Gary. 
I have repeatedly seen companies deploying ActiveMQ in production where the underlying disk had only 10-30 GB of free space left. 
Just this week I found a company that deployed ActiveMQ with almost default settings (commented <systemUsage> in ActiveMQ) and they only had 6 GB of hard disk space available. 
I believe this happens fairly often. 

I can see that the limits I proposed may seem a bit low but assuming there will be up to 110GB disk space available by default may be too much? 
Also, the default systemUsage will not be apparent from looking at the configuration (see AMQ-3574). So I presume most users of ActiveMQ are unaware of these high default limits.

                
      was (Author: tmielke):
    Thanks for your input Gary. 
I have repeatedly seen companies deploying ActiveMQ in production where the underlying disk had only 10-30 GB of free space left. 
Just this week I found a company that deployed ActiveMQ with almost default settings (commented <systemUsage> in ActiveMQ) and they only had 6 GB of hard disk space available. 
I believe this happens fairly often. 

I can see that the limits I proposed may seem a bit low but assuming there will be up to 110GB disk space available by default may be too much? 
Also, this will not be apparent from looking at the default conf (see AMQ-3574). So I presume most users of ActiveMQ are unaware of these high default limits.

                  
> Hardcoded defaults for systemUsage not suitable for out of the box 
> -------------------------------------------------------------------
>
>                 Key: AMQ-3573
>                 URL: https://issues.apache.org/jira/browse/AMQ-3573
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 5.5.1
>            Reporter: Torsten Mielke
>              Labels: default, systemUsage
>         Attachments: AMQ-3573.patch
>
>
> Right now the default activemq.xml has the entire <systemUsage> section commented out. If commented, then the default systemUsage as defined in BrokerService.getSystemUsage() applies and uses these limits:
> memoryLimit 64 MB
> storeLimit: 10 GB
> tempLimit: 100 GB
> I don't think these are good default values as in the worst case the broker may use 110 GB of disk space. Many runtime environments will not have that much disk space and are therefore in danger of running out of disk space completely. 
> IMHO some more sensitive defaults would be 
> memoryLimit 64 MB
> storeLimit:  1 GB
> tempLimit:   1 GB
> to prevent the broker from using too much disk space by default. 
> I believe most users of ActiveMQ are unaware of these defaults and probably don't expect the broker to use up to 110 GB of their disk. 
> If anyone really needs large store and temp limit, they should explicitly configure for it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AMQ-3573) Hardcoded defaults for systemUsage not suitable for out of the box

Posted by "Gary Tully (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13142715#comment-13142715 ] 

Gary Tully commented on AMQ-3573:
---------------------------------

not sure I agree. Large disks are the norm and I think it is better to have the broker spool to disk for as long as it can rather than block pending some arbitrary small limit. I guess making small limits would make users more aware of them, but with the existing values most users can simply ignore them.

                
> Hardcoded defaults for systemUsage not suitable for out of the box 
> -------------------------------------------------------------------
>
>                 Key: AMQ-3573
>                 URL: https://issues.apache.org/jira/browse/AMQ-3573
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 5.5.1
>            Reporter: Torsten Mielke
>              Labels: default, systemUsage
>         Attachments: AMQ-3573.patch
>
>
> Right now the default activemq.xml has the entire <systemUsage> section commented out. If commented, then the default systemUsage as defined in BrokerService.getSystemUsage() applies and uses these limits:
> memoryLimit 64 MB
> storeLimit: 10 GB
> tempLimit: 100 GB
> I don't think these are good default values as in the worst case the broker may use 110 GB of disk space. Many runtime environments will not have that much disk space and are therefore in danger of running out of disk space completely. 
> IMHO some more sensitive defaults would be 
> memoryLimit 64 MB
> storeLimit:  1 GB
> tempLimit:   1 GB
> to prevent the broker from using too much disk space by default. 
> I believe most users of ActiveMQ are unaware of these defaults and probably don't expect the broker to use up to 110 GB of their disk. 
> If anyone really needs large store and temp limit, they should explicitly configure for it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AMQ-3573) Hardcoded defaults for systemUsage not suitable for out of the box

Posted by "Rob Davies (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13256253#comment-13256253 ] 

Rob Davies commented on AMQ-3573:
---------------------------------

For https://issues.apache.org/jira/browse/AMQ-3573 In junit tests -  fixed null pointer if the directory doesn't exist
Subversion: Committed revision 1327388.
                
> Hardcoded defaults for systemUsage not suitable for out of the box 
> -------------------------------------------------------------------
>
>                 Key: AMQ-3573
>                 URL: https://issues.apache.org/jira/browse/AMQ-3573
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 5.5.1
>            Reporter: Torsten Mielke
>            Assignee: Rob Davies
>              Labels: default, systemUsage
>             Fix For: 5.6.0
>
>         Attachments: AMQ-3573.patch
>
>
> Right now the default activemq.xml has the entire <systemUsage> section commented out. If commented, then the default systemUsage as defined in BrokerService.getSystemUsage() applies and uses these limits:
> memoryLimit 64 MB
> storeLimit: 10 GB
> tempLimit: 100 GB
> I don't think these are good default values as in the worst case the broker may use 110 GB of disk space. Many runtime environments will not have that much disk space and are therefore in danger of running out of disk space completely. 
> IMHO some more sensitive defaults would be 
> memoryLimit 64 MB
> storeLimit:  1 GB
> tempLimit:   1 GB
> to prevent the broker from using too much disk space by default. 
> I believe most users of ActiveMQ are unaware of these defaults and probably don't expect the broker to use up to 110 GB of their disk. 
> If anyone really needs large store and temp limit, they should explicitly configure for it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (AMQ-3573) Hardcoded defaults for systemUsage not suitable for out of the box

Posted by "Torsten Mielke (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Torsten Mielke updated AMQ-3573:
--------------------------------

    Attachment: AMQ-3573.patch

Attaching a possible patch. 
                
> Hardcoded defaults for systemUsage not suitable for out of the box 
> -------------------------------------------------------------------
>
>                 Key: AMQ-3573
>                 URL: https://issues.apache.org/jira/browse/AMQ-3573
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 5.5.1
>            Reporter: Torsten Mielke
>              Labels: default, systemUsage
>         Attachments: AMQ-3573.patch
>
>
> Right now the default activemq.xml has the entire <systemUsage> section commented out. If commented, then the default systemUsage as defined in BrokerService.getSystemUsage() applies and uses these limits:
> memoryLimit 64 MB
> storeLimit: 10 GB
> tempLimit: 100 GB
> I don't think these are good default values as in the worst case the broker may use 110 GB of disk space. Many runtime environments will not have that much disk space and are therefore in danger of running out of disk space completely. 
> IMHO some more sensitive defaults would be 
> memoryLimit 64 MB
> storeLimit:  1 GB
> tempLimit:   1 GB
> to prevent the broker from using too much disk space by default. 
> I believe most users of ActiveMQ are unaware of these defaults and probably don't expect the broker to use up to 110 GB of their disk. 
> If anyone really needs large store and temp limit, they should explicitly configure for it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira