diff options
author | lbsa71 | 2008-02-09 21:17:47 +0000 |
---|---|---|
committer | lbsa71 | 2008-02-09 21:17:47 +0000 |
commit | 176a1fe3824f8e988efafb6be8e8e12e40132e7c (patch) | |
tree | 7e1daeb9eed243efd4d283af2998d94b9fe96dd6 /OpenSim/Region/Application/OpenSimMain.cs | |
parent | Added undocumented "modules list" command, lists shared region modules. (diff) | |
download | opensim-SC-176a1fe3824f8e988efafb6be8e8e12e40132e7c.zip opensim-SC-176a1fe3824f8e988efafb6be8e8e12e40132e7c.tar.gz opensim-SC-176a1fe3824f8e988efafb6be8e8e12e40132e7c.tar.bz2 opensim-SC-176a1fe3824f8e988efafb6be8e8e12e40132e7c.tar.xz |
* added two new commands (for debug/disaster recovery)
'show assets' shows the current state of the asset cache (number of cached assets, requests, et c)
'clear-assets' forcibly re-initializes the asset cache thereby freeing all cached items.
'clear-assets' is not to be used lightly, as it probably introduces mem inconsistencies and doubling up of textures.
Diffstat (limited to 'OpenSim/Region/Application/OpenSimMain.cs')
-rw-r--r-- | OpenSim/Region/Application/OpenSimMain.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index 0aeb53a..73cfb9a 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs | |||
@@ -651,6 +651,10 @@ namespace OpenSim | |||
651 | 651 | ||
652 | switch (command) | 652 | switch (command) |
653 | { | 653 | { |
654 | case "clear-assets": | ||
655 | m_assetCache.Clear(); | ||
656 | break; | ||
657 | |||
654 | case "set-time": | 658 | case "set-time": |
655 | m_sceneManager.SetCurrentSceneTimePhase(Convert.ToInt32(cmdparams[0])); | 659 | m_sceneManager.SetCurrentSceneTimePhase(Convert.ToInt32(cmdparams[0])); |
656 | break; | 660 | break; |
@@ -679,6 +683,7 @@ namespace OpenSim | |||
679 | m_console.Notice(" alert [First] [Last] [Message] - send an alert to a user. Case sensitive."); | 683 | m_console.Notice(" alert [First] [Last] [Message] - send an alert to a user. Case sensitive."); |
680 | m_console.Notice(" alert general [Message] - send an alert to all users."); | 684 | m_console.Notice(" alert general [Message] - send an alert to all users."); |
681 | m_console.Notice("backup - trigger a simulator backup"); | 685 | m_console.Notice("backup - trigger a simulator backup"); |
686 | m_console.Notice("clear-assets - clear asset cache"); | ||
682 | m_console.Notice("create user - adds a new user"); | 687 | m_console.Notice("create user - adds a new user"); |
683 | m_console.Notice("change-region [name] - sets the region that many of these commands affect."); | 688 | m_console.Notice("change-region [name] - sets the region that many of these commands affect."); |
684 | m_console.Notice("command-script [filename] - Execute command in a file."); | 689 | m_console.Notice("command-script [filename] - Execute command in a file."); |
@@ -697,6 +702,7 @@ namespace OpenSim | |||
697 | m_console.Notice("save-xml2 [filename] - save prims to XML using version 2 format"); | 702 | m_console.Notice("save-xml2 [filename] - save prims to XML using version 2 format"); |
698 | m_console.Notice("script - manually trigger scripts? or script commands?"); | 703 | m_console.Notice("script - manually trigger scripts? or script commands?"); |
699 | m_console.Notice("set-time [x] - set the current scene time phase"); | 704 | m_console.Notice("set-time [x] - set the current scene time phase"); |
705 | m_console.Notice("show assets - show state of asset cache."); | ||
700 | m_console.Notice("show users - show info about connected users."); | 706 | m_console.Notice("show users - show info about connected users."); |
701 | m_console.Notice("show modules - shows info aboutloaded modules."); | 707 | m_console.Notice("show modules - shows info aboutloaded modules."); |
702 | m_console.Notice("show stats - statistical information for this server not displayed in the client"); | 708 | m_console.Notice("show stats - statistical information for this server not displayed in the client"); |
@@ -989,6 +995,10 @@ namespace OpenSim | |||
989 | 995 | ||
990 | switch (ShowWhat) | 996 | switch (ShowWhat) |
991 | { | 997 | { |
998 | case "assets": | ||
999 | m_assetCache.ShowState(); | ||
1000 | break; | ||
1001 | |||
992 | case "users": | 1002 | case "users": |
993 | m_console.Notice( | 1003 | m_console.Notice( |
994 | String.Format("{0,-16}{1,-16}{2,-37}{3,-16}{4,-22}{5,-16}", "Firstname", "Lastname", | 1004 | String.Format("{0,-16}{1,-16}{2,-37}{3,-16}{4,-22}{5,-16}", "Firstname", "Lastname", |