diff --git a/docs/gotcha.txt b/docs/gotcha.txt index 7c0c486e7..43e651e33 100644 --- a/docs/gotcha.txt +++ b/docs/gotcha.txt @@ -85,7 +85,17 @@ save you many hours of grief. This file requires each line to contain exactly one full module name such as "WebGUI::Asset::Wobject::WSClient" (without the quotes) per line. No spaces or additional formatting can be - present. + present. You may, for example, just copy sbin/preload.exclude.example + to sbin/preload.exclude and save yourself about 5MB of memory + because that will eliminate some of the least commonly used + components. + + If you mistakenly exclude modules that WebGUI actually needs + to run, it will load them at run time, and just use more RAM, + so you don't need to worry about breaking WebGUI. However, this + doesn't mean you should just exclude everything because doing + runtime loading will likely use 5-10 times more RAM than just + preloading them to begin with. 6.7.0 diff --git a/sbin/preload.exclude.example b/sbin/preload.exclude.example new file mode 100644 index 000000000..0eafc051d --- /dev/null +++ b/sbin/preload.exclude.example @@ -0,0 +1,47 @@ +WebGUI::Cache::Memcached +WebGUI::Auth::LDAP +WebGUI::Asset::Wobject::WSClient +WebGUI::Asset::File::ZipArchive +WebGUI::Asset::Wobject::Matrix +WebGUI::Asset::Wobject::HttpProxy +WebGUI::Asset::Wobject::Product +WebGUI::Asset::Wobject::Survey +WebGUI::Asset::Wobject::InOutBoard +WebGUI::Commerce +WebGUI::Commerce::Item +WebGUI::Commerce::Item::Product +WebGUI::Commerce::Item::Subscription +WebGUI::Commerce::Payment +WebGUI::Commerce::Payment::ITransact +WebGUI::Commerce::Shipping +WebGUI::Commerce::Shipping::ByPrice +WebGUI::Commerce::Shipping::ByWeight +WebGUI::Commerce::Shipping::PerTransaction +WebGUI::Commerce::ShoppingCart +WebGUI::Commerce::Transaction +WebGUI::Subscription +WebGUI::Operation::TransactionLog +WebGUI::Operation::Commerce +WebGUI::Operation::Subscription +WebGUI::Asset::Wobject::IndexedSearch::Search +WebGUI::Macro::AOIHits +WebGUI::Macro::AOIRank +WebGUI::Macro::AdminText +WebGUI::Macro::CanEditText +WebGUI::Macro::EditableToggle +WebGUI::Macro::Execute +WebGUI::Macro::FormParam +WebGUI::Macro::GroupAdd +WebGUI::Macro::GroupDelete +WebGUI::Macro::GroupText +WebGUI::Macro::If +WebGUI::Macro::Include +WebGUI::Macro::LastModified +WebGUI::Macro::Product +WebGUI::Macro::Quote +WebGUI::Macro::RootTitle +WebGUI::Macro::SQL +WebGUI::Macro::Splat_random +WebGUI::Macro::SubscriptionItem +WebGUI::Macro::SubscriptionItemPurchaseUrl +WebGUI::Macro::URLEncode