From guillaume.liegard at gmail.com Wed Jul 11 11:43:26 2007 From: guillaume.liegard at gmail.com (Guillaume Liegard) Date: Wed, 11 Jul 2007 17:43:26 +0200 Subject: Metrics on Windows XP Message-ID: <1dd8f11e0707110843u5618152csfcb496c221ff86fe@mail.gmail.com> Hello, I'm a new Cougaar developper. I want to know if the metric service can bring me informations about the computer in general. For example, I need the CPU usage of the computer in general (not only the CPU usage of an agent or a node, or the jvm). Then, the feature must run on Windows XP. And I get "WARN [DirectSysStatSupplier] - No handler for CPU on platform Windows XP", which makes me think it won't work on Windows. That's why I want to add new metrics, based on native calls. So I read the documentation at " http://cougaar.cougaar.org/software/12.2/OnlineManual/MetricsService/", in particular the section "Add New Metric". I look at an exemple of sensor plugin : " org.cougaar.core.thread.AgentLoadSensorPlugin". But this sensor get it's values suscribing to the metric service, and there is no metric which can answer my need : Get the global CPU usage on Windows plateform. Finaly, I look at the "Use Cases and Examples", in particular the "Example Metrics Writer", in order to be able to add my own key. When I add a new key, like the "Example Metrics Writer" do with the "Current_Time_Millis" key ; I can't get the value after, because I don't know the path. For example, I manage to modify an existing key, like "Host_[Host IP]_CPU_Jips", and get my funny value after because I know the path is "Host([Host IP]):Jips". So where can I do the mapping between key and path ? Because the example shows how can I put a key, but not how can I put the path. -- Guillaume Li?gard -------------- next part -------------- An HTML attachment was scrubbed... URL: http://cougaar.org/pipermail/cougaar-developers/attachments/20070711/b6cbca0d/attachment.html From jzinky at bbn.com Wed Jul 11 14:08:31 2007 From: jzinky at bbn.com (John Zinky) Date: Wed, 11 Jul 2007 14:08:31 -0400 Subject: Metrics on Windows XP In-Reply-To: <1dd8f11e0707110843u5618152csfcb496c221ff86fe@mail.gmail.com> References: <1dd8f11e0707110843u5618152csfcb496c221ff86fe@mail.gmail.com> Message-ID: Guillaume, The Host metrics come from a metric service via the SysStat "Data Feed", which periodically polls the host OS for system metrics. For linux this is easy using the /proc file interface. For Solaris and MacOS we can get the load average by executing the program "uptime" For Windows nothing is easy, (at least for us). We attempted using JNI to make Windows system calls, but abandoned that code as unreliable. If you know of a way to get at Windows OS parameters from java, without JNI calls please tell us we can add these calls. I.E. is there a program that we can exec, that is always installed in Windows? If you have working JNI code we might look at, but no promises. DLL's are a configuration nightmare. Specifically, we would like to fill in the metrics servlet table "$/metrics/resources" or the Metrics Host Keys http://cougaar.cougaar.org/software/latest/doc/OnlineManual/ MetricsService/keys.html The missing metrics are: LoadAverage (this is the key metric, but Windows does not seem to use Load Average (Average number of jobs ready to run). Cache TcpInUse UdpInUse TotalMemory FreeMemory Windows metrics that cougaar currently measures. Count is obtained via Java System calls JIPS (Java Instructions per second) is obtained via a micro benchmark when the node first starts up. BTW: You could not find these metrics in the Cougaar code because, the Metric Service implementation really is the QuO Resource Status Service (quo.bbn.com), so the source code is not available via cougaar.org. We are debating on whether to add the QuO RSS source code to cougaar. Adding Windows support may be a good excuse to do this branch. On Jul 11, 2007, at 11:43 AM, Guillaume Liegard wrote: > Hello, > > I'm a new Cougaar developper. > > I want to know if the metric service can bring me informations > about the computer in general. > For example, I need the CPU usage of the computer in general (not > only the CPU usage of an agent or a node, or the jvm). > > Then, the feature must run on Windows XP. > And I get "WARN [DirectSysStatSupplier] - No handler for CPU on > platform Windows XP", which makes me think it won't work on Windows. > > That's why I want to add new metrics, based on native calls. > So I read the documentation at "http://cougaar.cougaar.org/software/ > 12.2/OnlineManual/MetricsService/ ", in particular the section "Add > New Metric". > I look at an exemple of sensor plugin : > "org.cougaar.core.thread.AgentLoadSensorPlugin". > But this sensor get it's values suscribing to the metric service, > and there is no metric which can answer my need : Get the global > CPU usage on Windows plateform. > > Finaly, I look at the "Use Cases and Examples", in particular the > "Example Metrics Writer", in order to be able to add my own key. > When I add a new key, like the "Example Metrics Writer" do with the > "Current_Time_Millis" key ; I can't get the value after, because I > don't know the path. > For example, I manage to modify an existing key, like "Host_[Host > IP]_CPU_Jips", and get my funny value after because I know the path > is "Host([Host IP]):Jips". > So where can I do the mapping between key and path ? Because the > example shows how can I put a key, but not how can I put the path. > > -- > Guillaume Li?gard > > _______________________________________________ > Cougaar-developers mailing list > Cougaar-developers at cougaar.org > http://cougaar.org/mailman/listinfo/cougaar-developers From guillaume.liegard at gmail.com Fri Jul 13 09:06:10 2007 From: guillaume.liegard at gmail.com (Guillaume Liegard) Date: Fri, 13 Jul 2007 15:06:10 +0200 Subject: Metrics on Windows XP In-Reply-To: References: <1dd8f11e0707110843u5618152csfcb496c221ff86fe@mail.gmail.com> Message-ID: <1dd8f11e0707130606g687e5026p99826eff41483c1b@mail.gmail.com> Hello John, Thank you for your fast answer. I work on finding a good method to get windows metric. Because we need to get global CPU usage, memory usage, and network usage, on Windows XP and Windows Vista. Then, we want to add metric in the Metric Service implementation. So, if you open the source, we will propose to adapt the framework to allows developers to add new metrics easily (if it isn't already done). -- Guillaume Li?gard 2007/7/11, John Zinky : > > Guillaume, > > The Host metrics come from a metric service via the SysStat "Data > Feed", which periodically polls the host OS for system metrics. > For linux this is easy using the /proc file interface. > For Solaris and MacOS we can get the load average by executing the > program "uptime" > For Windows nothing is easy, (at least for us). We attempted using > JNI to make Windows system calls, but abandoned that code as unreliable. > > If you know of a way to get at Windows OS parameters from java, > without JNI calls please tell us we can add these calls. I.E. is > there a program that we can exec, that is always installed in > Windows? If you have working JNI code we might look at, but no > promises. DLL's are a configuration nightmare. > > Specifically, we would like to fill in the metrics servlet table > "$/metrics/resources" > or the Metrics Host Keys > http://cougaar.cougaar.org/software/latest/doc/OnlineManual/ > MetricsService/keys.html > > The missing metrics are: > LoadAverage (this is the key metric, but Windows does not seem to use > Load Average (Average number of jobs ready to run). > Cache > TcpInUse > UdpInUse > TotalMemory > FreeMemory > > Windows metrics that cougaar currently measures. > Count is obtained via Java System calls > JIPS (Java Instructions per second) is obtained via a micro benchmark > when the node first starts up. > > BTW: You could not find these metrics in the Cougaar code because, > the Metric Service implementation really is the QuO Resource Status > Service ( quo.bbn.com), so the source code is not available via > cougaar.org. We are debating on whether to add the QuO RSS source > code to cougaar. Adding Windows support may be a good excuse to do > this branch. > > On Jul 11, 2007, at 11:43 AM, Guillaume Liegard wrote: > > > Hello, > > > > I'm a new Cougaar developper. > > > > I want to know if the metric service can bring me informations > > about the computer in general. > > For example, I need the CPU usage of the computer in general (not > > only the CPU usage of an agent or a node, or the jvm). > > > > Then, the feature must run on Windows XP. > > And I get "WARN [DirectSysStatSupplier] - No handler for CPU on > > platform Windows XP", which makes me think it won't work on Windows. > > > > That's why I want to add new metrics, based on native calls. > > So I read the documentation at "http://cougaar.cougaar.org/software/ > > 12.2/OnlineManual/MetricsService/ ", in particular the section "Add > > New Metric". > > I look at an exemple of sensor plugin : > > "org.cougaar.core.thread.AgentLoadSensorPlugin". > > But this sensor get it's values suscribing to the metric service, > > and there is no metric which can answer my need : Get the global > > CPU usage on Windows plateform. > > > > Finaly, I look at the "Use Cases and Examples", in particular the > > "Example Metrics Writer", in order to be able to add my own key. > > When I add a new key, like the "Example Metrics Writer" do with the > > "Current_Time_Millis" key ; I can't get the value after, because I > > don't know the path. > > For example, I manage to modify an existing key, like "Host_[Host > > IP]_CPU_Jips", and get my funny value after because I know the path > > is "Host([Host IP]):Jips". > > So where can I do the mapping between key and path ? Because the > > example shows how can I put a key, but not how can I put the path. > > > > -- > > Guillaume Li?gard > > > > _______________________________________________ > > Cougaar-developers mailing list > > Cougaar-developers at cougaar.org > > http://cougaar.org/mailman/listinfo/cougaar-developers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://cougaar.org/pipermail/cougaar-developers/attachments/20070713/78280e7f/attachment.html From jzinky at bbn.com Fri Jul 13 10:39:26 2007 From: jzinky at bbn.com (John Zinky) Date: Fri, 13 Jul 2007 10:39:26 -0400 Subject: Metrics on Windows XP In-Reply-To: <1dd8f11e0707130606g687e5026p99826eff41483c1b@mail.gmail.com> References: <1dd8f11e0707110843u5618152csfcb496c221ff86fe@mail.gmail.com> <1dd8f11e0707130606g687e5026p99826eff41483c1b@mail.gmail.com> Message-ID: There are a bunch of options for getting raw metrics VALUES into the metrics service. 1) The most convenient way is to publish the "Key" into the MetricUpdaterService. http://cougaar.cougaar.org/software/latest/doc/OnlineManual/ MetricsService/MetricsUpdateService.html 2) You could also add startup time configuration default using the org.cougaar.core.qos.rss.ConfigFinderDataFeedComponent This DataFeed allows you to put a file of key=value pairs on the config path or on a web page. When the node loads it reads this file into the metric service. (RSS section of:) http://cougaar.cougaar.org/software/latest/doc/OnlineManual/ MetricsService/configuration.html Note that this DataFeed does not poll the file/URL for changes 3) You could make your own QuO RSS DataFeed like ConfigFinderDataFeedComponent, GossipFeedComponent, TrivalDataFeed. but the base DataFeed implementations are part of the QuO RSS code base. FYI: A DataFeed gets a list of Keys that need to be updated. If the DataFeed can get a Key's value, it sends a call back with the key=value pair. Whenever the value changes, the DataFeed will send the new value. The Metric service figures out which key=value has the most confidence from all the pairs supplied by all the installed DataFeeds. If you want to add a new Path, that is a lot tricker and not very well documented. 1) You have to add a create new QuO RSS ResourceContext, which is a formula that depends on other lower layer formulas. Formulas make an update DAG with new values coming as keys at the bottom and propagating calculations up to the subscribers. Example classes are marked with "DS", such as AgentDS. 2) You have to register your formula with the RSS, done by a yucky static in RSSMetricsServiceImpl I would be interested in knowing what Keys and Paths you would like to added. We might add them to the standard resource metrics. On Jul 13, 2007, at 9:06 AM, Guillaume Liegard wrote: > Hello John, > > Thank you for your fast answer. > > I work on finding a good method to get windows metric. > Because we need to get global CPU usage, memory usage, and network > usage, on Windows XP and Windows Vista. > > Then, we want to add metric in the Metric Service implementation. > So, if you open the source, we will propose to adapt the framework > to allows developers to add new metrics easily (if it isn't already > done). > > -- > Guillaume Li?gard > > 2007/7/11, John Zinky < jzinky at bbn.com>: Guillaume, > > The Host metrics come from a metric service via the SysStat "Data > Feed", which periodically polls the host OS for system metrics. > For linux this is easy using the /proc file interface. > For Solaris and MacOS we can get the load average by executing the > program "uptime" > For Windows nothing is easy, (at least for us). We attempted using > JNI to make Windows system calls, but abandoned that code as > unreliable. > > If you know of a way to get at Windows OS parameters from java, > without JNI calls please tell us we can add these calls. I.E. is > there a program that we can exec, that is always installed in > Windows? If you have working JNI code we might look at, but no > promises. DLL's are a configuration nightmare. > > Specifically, we would like to fill in the metrics servlet table > "$/metrics/resources" > or the Metrics Host Keys > http://cougaar.cougaar.org/software/latest/doc/OnlineManual/ > MetricsService/keys.html > > The missing metrics are: > LoadAverage (this is the key metric, but Windows does not seem to use > Load Average (Average number of jobs ready to run). > Cache > TcpInUse > UdpInUse > TotalMemory > FreeMemory > > Windows metrics that cougaar currently measures. > Count is obtained via Java System calls > JIPS (Java Instructions per second) is obtained via a micro benchmark > when the node first starts up. > > BTW: You could not find these metrics in the Cougaar code because, > the Metric Service implementation really is the QuO Resource Status > Service ( quo.bbn.com), so the source code is not available via > cougaar.org. We are debating on whether to add the QuO RSS source > code to cougaar. Adding Windows support may be a good excuse to do > this branch. > > On Jul 11, 2007, at 11:43 AM, Guillaume Liegard wrote: > > > Hello, > > > > I'm a new Cougaar developper. > > > > I want to know if the metric service can bring me informations > > about the computer in general. > > For example, I need the CPU usage of the computer in general (not > > only the CPU usage of an agent or a node, or the jvm). > > > > Then, the feature must run on Windows XP. > > And I get "WARN [DirectSysStatSupplier] - No handler for CPU on > > platform Windows XP", which makes me think it won't work on Windows. > > > > That's why I want to add new metrics, based on native calls. > > So I read the documentation at "http://cougaar.cougaar.org/software/ > > 12.2/OnlineManual/MetricsService/ ", in particular the section "Add > > New Metric". > > I look at an exemple of sensor plugin : > > "org.cougaar.core.thread.AgentLoadSensorPlugin". > > But this sensor get it's values suscribing to the metric service, > > and there is no metric which can answer my need : Get the global > > CPU usage on Windows plateform. > > > > Finaly, I look at the "Use Cases and Examples", in particular the > > "Example Metrics Writer", in order to be able to add my own key. > > When I add a new key, like the "Example Metrics Writer" do with the > > "Current_Time_Millis" key ; I can't get the value after, because I > > don't know the path. > > For example, I manage to modify an existing key, like "Host_[Host > > IP]_CPU_Jips", and get my funny value after because I know the path > > is "Host([Host IP]):Jips". > > So where can I do the mapping between key and path ? Because the > > example shows how can I put a key, but not how can I put the path. > > > > -- > > Guillaume Li?gard > > > > _______________________________________________ > > Cougaar-developers mailing list > > Cougaar-developers at cougaar.org > > http://cougaar.org/mailman/listinfo/cougaar-developers > > From ddomingue at gmail.com Fri Jul 20 12:06:42 2007 From: ddomingue at gmail.com (daniel domingue) Date: Fri, 20 Jul 2007 18:06:42 +0200 Subject: White pages configuration Message-ID: (Message originally posted on the CougaarSE forum, sorry for the delay) Hello, I would like to know what is the best way to configure the white pages service, knowing that I shall have a large number of hosts with a large number of agents on each hosts (hierarchical use of different WP servers, distributed configuration, fine tuning parameters, etc..) Some example files would be of great help, if available. Also, I might have missed links on this specific topic, as I found some fine tuning parameters for the white pages service in some configuration files but no document that fully describes the possibilities (the specific document on the Cougaar Message Transport Service I got dates back from 10.4) . As usual I would be glad to get them in order to go further. Thanks, -- Daniel Domingue From twright at bbn.com Fri Jul 20 16:18:27 2007 From: twright at bbn.com (Todd Wright) Date: Fri, 20 Jul 2007 16:18:27 -0400 Subject: White pages configuration In-Reply-To: References: Message-ID: <46A11893.9090000@bbn.com> The primary tuning parameters are: -Dorg.cougaar.core.wp.server.successTTD -Dorg.cougaar.core.wp.server.failTTD -Dorg.cougaar.core.wp.server.expireTTD -Dorg.cougaar.core.wp.server.forwardPeriod -Dorg.cougaar.core.wp.resolver.transport.nagleMillis These options control how often to renew cache and lease entries in the WP server. Here's a paper I wrote on how the "TTD" settings affect the amount of WP traffic: http://cougaar.org/docman/view.php/17/176/Scalable_Naming_KIMAS_2005.ppt http://cougaar.org/docman/view.php/17/175/scalability_paper_kimas_05.pdf Also see: http://core.cougaar.org/wiki/wiki.pl?WhitePagesMagicNumbers You can run with multiple, fully-replicated WP servers. I've attached an HTML file that describes how to setup multiple servers. As a very general guideline, try (say) one WP server for every 6 hosts. Todd daniel domingue wrote: > (Message originally posted on the CougaarSE forum, sorry for the delay) > > Hello, > > I would like to know what is the best way to configure the white pages > service, knowing that I shall have a large number of hosts with a > large number of agents on each hosts (hierarchical use of different WP > servers, distributed configuration, fine tuning parameters, etc..) > Some example files would be of great help, if available. > > Also, I might have missed links on this specific topic, as I found > some fine tuning parameters for the white pages service in some > configuration files but no document that fully describes the > possibilities (the specific document on the Cougaar Message Transport > Service I got dates back from 10.4) . As usual I would be glad to get > them in order to go further. > > Thanks, > -------------- next part -------------- A non-text attachment was scrubbed... Name: replicated_wp_figure1.png Type: image/png Size: 15103 bytes Desc: not available Url : http://cougaar.org/pipermail/cougaar-developers/attachments/20070720/f18072a4/replicated_wp_figure1-0001.png -------------- next part -------------- An HTML attachment was scrubbed... URL: http://cougaar.org/pipermail/cougaar-developers/attachments/20070720/f18072a4/WhitePagesReplication-0001.html From fierykylin at gmail.com Tue Jul 31 08:58:03 2007 From: fierykylin at gmail.com (kylin) Date: Tue, 31 Jul 2007 20:58:03 +0800 Subject: Repast VS cougaar Message-ID: <87ab37ab0707310558jd115bf7sf009243aec2c461@mail.gmail.com> Sir ? I am a newcomer in Rcougaar (http://cougaar.org/)by BBN Tech ,and have heard of repast and soar both as the multi-agent simulation platform ,I am confuse about the functions provided by the two,both announce as agent modeling and simulation enviorenment ,what are the difference between them in function useermodel ,archirtechture and the defination to agent? Do I have to install tomcat before use the web UI? -- Wang Bing Institute of Software School of Computer Science National Univ. of Defense Tech. HuNan China Mobile:086-13755009547 Dom : 086-0731-4574606 From fierykylin at gmail.com Tue Jul 31 09:05:33 2007 From: fierykylin at gmail.com (kylin) Date: Tue, 31 Jul 2007 21:05:33 +0800 Subject: How to install the cougaarIDE plugin to Eclipse and Code in Eclipse? Message-ID: <87ab37ab0707310605l14fadfe4n6b67a2e1d93050d8@mail.gmail.com> Dear Sir : As a new comer ,I am eager to know the quick start of coding beyond the ant and the ./cougaar directly,Thanks alot! -- Wang Bing Institute of Software School of Computer Science National Univ. of Defense Tech. HuNan China Mobile:086-13755009547 Dom : 086-0731-4574606 From ahelsing at bbn.com Tue Jul 31 09:10:12 2007 From: ahelsing at bbn.com (Aaron Helsinger) Date: Tue, 31 Jul 2007 09:10:12 -0400 Subject: How to install the cougaarIDE plugin to Eclipse and Code in Eclipse? In-Reply-To: <87ab37ab0707310605l14fadfe4n6b67a2e1d93050d8@mail.gmail.com> References: <87ab37ab0707310605l14fadfe4n6b67a2e1d93050d8@mail.gmail.com> Message-ID: <46AF34B4.70302@bbn.com> See the CougaarIDE home page: http://cougaaride.cougaar.org/ kylin wrote: > Dear Sir : > As a new comer ,I am eager to know the quick start of > coding beyond the ant and the ./cougaar directly,Thanks alot! > > From twright at bbn.com Tue Jul 31 13:20:20 2007 From: twright at bbn.com (Todd Wright) Date: Tue, 31 Jul 2007 13:20:20 -0400 Subject: Repast VS cougaar In-Reply-To: <87ab37ab0707310558jd115bf7sf009243aec2c461@mail.gmail.com> References: <87ab37ab0707310558jd115bf7sf009243aec2c461@mail.gmail.com> Message-ID: <46AF6F54.205@bbn.com> kylin wrote: > Sir ? > > I am a newcomer in Rcougaar (http://cougaar.org/)by BBN Tech ,and > have heard of repast and soar both as the multi-agent simulation > platform ,I am confuse about the functions > provided by the two,both announce as agent modeling and simulation > enviorenment ,what are the difference between them in function > useermodel ,archirtechture and the defination to agent? I've never used Repast or Soar, but I just took a quick look at their websites. Repast appears to be a single-JVM discrete event simulator with a focus on Swarm-like 2-D models (e.g. ant simulations). Soar appears to be a single-JVM Artificial Intelligence framework with a focus on learning applications. Cougaar is designed to support distributed applications with peer-to-peer agent interactions. There's no built-in Cougaar event simulator or global clock. Agents are composed of "plugin" software. Artificial Intelligence applications can be built on top of Cougaar, e.g. to optimize transportation schedules: http://vishnu.bbn.com/ For an overview of Cougaar, please see: http://cougaar.org/docman/view.php/17/196/CougaarOverview.ppt > > Do I have to install tomcat before use the web UI? > No, Tomcat is included with Cougaar. Todd