Sponsored Content
Operating Systems Linux Red Hat Performance Monitoring - RHEL 7.4 Post 303021902 by Overcast451 on Monday 20th of August 2018 09:41:00 AM
Old 08-20-2018
Performance Monitoring - RHEL 7.4

Have a question about doing some performance monitoring - how to approach it.

This is on RHEL 7.4

We are moving a rather large application to new hardware in the future. I would like to find a way to compared performance on the new hardware at different stages and at different times.

I'm familiar with the basic tools, such as top - and I've found an app called 'stress' that can be used to put various loads on the system.

But I am wanting to make a comparison on how the performance varies or does not vary after things like: Firmware upgrades, App installs, etc.

Any suggestions on a method/process or tool maybe that can assist with this? I can cap out the loads with 'stress' but I'm not sure what that will tell me. My first thought was to run the app with a certain set of parameters and then compare future runs using the same set of parameters. I would need or like it to be able to log results at set intervals via cron or something similar.

But looking for suggestions Smilie

Thanks!

Last edited by Overcast451; 08-20-2018 at 10:42 AM.. Reason: Updating Subject with more detail
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

performance monitoring

hi, can any one tell me, is there is any way i can check the performance of my solaris 8 os on an Ent 3500. Other than top to check for the top most processes, how to make the calculations with vmstat, iostat, mpstat and nfsstat. Or is there any other tools that i can use? cheers. (3 Replies)
Discussion started by: i2admin
3 Replies

2. AIX

Performance monitoring

Hi All I am looking for a script that would collect statistics in a summarised format. CPU, Memory,Swap, Wait queue, Run queue and disk activity. Something that would allow me to profile the environment based on a 1 line output that I could run every 15 min. Thx Junaid (1 Reply)
Discussion started by: jhansrod
1 Replies

3. UNIX for Advanced & Expert Users

Performance Monitoring

Hi all The place I work for is about to to place there database server under heavy load for testing and would like the effect recorded as much as possible. Can anyone point me in the right direction with respect to real time system monitoring. I am aware of of 'sar', vmstat etc and hope to... (2 Replies)
Discussion started by: silvaman
2 Replies

4. UNIX for Dummies Questions & Answers

Performance monitoring

Hello, I am trying to find a way to view current CPU and disk usage. I used to use nmon which worked fine but since an upgrade to our servers this is no longer available. I have tried to get it reinstalled to no avail! Are there any other commands you can use within unix which will allow me... (4 Replies)
Discussion started by: johnwilliams
4 Replies

5. UNIX for Dummies Questions & Answers

Unix Performance Monitoring

In the vmstat , there are many columns you can see. Can someone tell me what is the most important column that i need to be watched on, and what value or average value should i watch inorder to determine that im experiencing a cpu bottle neck. What should be my basis. or if you use glance ... (2 Replies)
Discussion started by: kaibiganmi
2 Replies

6. Solaris

Performance Monitoring

Hi all, I am planning to give a presentation on performance measure. I have decided to focus on the commands which are used to know the performance of the server. I have a idea of prstat,vmstat,netstat, and iostat. Could anybody suggest me any other commands which are used for perforamance... (7 Replies)
Discussion started by: priky
7 Replies

7. Shell Programming and Scripting

Performance monitoring help needed.

How would i check for following? 1)open ports in my linux machine. 2)Hard disk read speed. 3)Hard disk write speed. (2 Replies)
Discussion started by: pinga123
2 Replies

8. AIX

Performance Monitoring of FileSystem

As I am new to the Unix field, I would like to get the clarification regarding the Filesystem. The scenario is.. The filesystem (/drbackup) is getting monitored and if it exceeds the threshold, we will receive an alert from it. The issue is that we receive an alert with the description of... (2 Replies)
Discussion started by: A.Srenivasan
2 Replies

9. Solaris

Performance / Batch monitoring

What tools can I use to look "deeper" into a process to see if the job is actually running or just hanging. What is the best method to accomplish this? SunOS 5.10 Generic_142900-14 sun4v sparc SUNW,T5240 (2 Replies)
Discussion started by: Harleyrci
2 Replies

10. AIX

Need some help for AIX performance monitoring

Hello I am new user of AIX; I have only basic knowledge of the UNIX commands, and I want to create script that will monitor the performance and resources usage on AIX 6.1 machine. Basically I wan to start a loop that will grab, every 10 seconds, the CPU usage, the memory usage, the disk usage,... (1 Reply)
Discussion started by: adaher
1 Replies
App::Cmd::Tutorial(3pm) 				User Contributed Perl Documentation				   App::Cmd::Tutorial(3pm)

NAME
App::Cmd::Tutorial - getting started with App::Cmd VERSION
version 0.318 DESCRIPTION
App::Cmd is a set of tools designed to make it simple to write sophisticated command line programs. It handles commands with multiple subcommands, generates usage text, validates options, and lets you write your program as easy-to-test classes. An App::Cmd-based application is made up of three main parts: the script, the application class, and the command classes. The script is the actual executable file run at the command line. It can generally consist of just a few lines: #!/usr/bin/perl use YourApp; YourApp->run; All the work of argument parsing, validation, and dispatch is taken care of by your application class. The application class can also be pretty simple, and might look like this: package YourApp; use App::Cmd::Setup -app; 1; When a new application instance is created, it loads all of the command classes it can find, looking for modules under the Command namespace under its own name. In the above snippet, for example, YourApp will look for any module with a name starting with "YourApp::Command::". We can set up a simple command class like this: package YourApp::Command::initialize; use YourApp -command; 1; Now, a user can run this command, but he'll get an error: $ yourcmd initialize YourApp::Command::initialize does not implement mandatory method 'execute' Oops! This dies because we haven't told the command class what it should do when executed. This is easy, we just add some code: sub execute { my ($self, $opt, $args) = @_; print "Everything has been initialized. (Not really.) "; } Now it works: $ yourcmd initialize Everything has been initialized. (Not really.) The arguments to the execute method are the parsed options from the command line (that is, the switches) and the remaining arguments. With a properly configured command class, the following invocation: $ yourcmd reset -zB --new-seed xyzxy foo.db bar.db might result in the following data: $opt = { zero => 1, no_backup => 1, new_seed => 'xyzzy', }; $args = [ qw(foo.db bar.db) ]; Arguments are processed by Getopt::Long::Descriptive (GLD). To customize its argument processing, a command class can implement a few methods: "usage_desc" provides the usage format string; "opt_spec" provides the option specification list; "validate_args" is run after Getopt::Long::Descriptive, and is meant to validate the $args, which GLD ignores. The first two methods provide configuration passed to GLD's "describe_options" routine. To improve our command class, we might add the following code: sub usage_desc { "yourcmd %o [dbfile ...]" } sub opt_spec { return ( [ "skip-refs|R", "skip reference checks during init", ], [ "values|v=s@", "starting values", { default => [ 0, 1, 3 ] } ], ); } sub validate_args { my ($self, $opt, $args) = @_; # we need at least one argument beyond the options; die with that message # and the complete "usage" text describing switches, etc $self->usage_error("too few arguments") unless @$args; } TIPS
o Delay using large modules using autouse, Class::Autouse or "require" in your commands to save memory and make startup faster. Since only one of these commands will be run anyway, there's no need to preload the requirements for all of them. o To add a "--help" option to all your commands create a base class like: package MyApp::Command; use App::Cmd::Setup -command; sub opt_spec { my ( $class, $app ) = @_; return ( [ 'help' => "This usage screen" ], $class->options($app), ) } sub validate_args { my ( $self, $opt, $args ) = @_; if ( $opt->{help} ) { my ($command) = $self->command_names; $self->app->execute_command( $self->app->prepare_command("help", $command) ); exit; } $self->validate( $opt, $args ); } Where "options" and "validate" are "inner" methods which your command subclasses implement to provide command-specific options and validation. o Add a "description" method to your commands for more verbose output from the built-in "App::Cmd::Command::help|help" command. sub description { return "The initialize command prepares ..."; } o To let your users configure default values for options, put a sub like sub config { my $app = shift; $app->{config} ||= TheLovelyConfigModule->load_config_file(); } in your main app file, and then do something like: sub opt_spec { my ( $class, $app ) = @_; my ( $name ) = $class->command_names; return ( [ 'blort=s' => "That special option", { default => $app->config->{$name}{blort} || $fallback_default }, ], ); } Or better yet, put this logic in a superclass and process the return value from an "inner" method (see previous tip for an example). AUTHOR
Ricardo Signes <rjbs@cpan.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Ricardo Signes. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-05-05 App::Cmd::Tutorial(3pm)
All times are GMT -4. The time now is 08:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy