blob: b6d85c2c8a4a82ac4f60a1c6002762be11adfbae [file] [log] [blame] [view]
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
# simstream
A utility for user-defined remote system and simulation data monitoring.
## Dependencies
* pika >= 0.10.0 (`pip install pika`)
* A running, accessible instance of RabbitMQ server
## Installation
1. Clone this repository
2. `python setup.py install`
## Running the Example
The example runs a simple collector that records the maximum memory used by the server (MB) and a timestamp. It also generates a plot of the results.
1. Edit `example/memory_consumption.py` and `example/memory_streamer.py` with the correct RabbitMQ settings
2. From the repository root, run `python example/memory_consumption.py`
3. Open a new terminal session and run `python example/memory_streamer.py`
4. Memory usage information should now be collected in the current terminal and received in the original terminal