Sponsored Content
Full Discussion: Re-start of RHEL server
Operating Systems Linux Red Hat Re-start of RHEL server Post 302758711 by sixstrings on Sunday 20th of January 2013 02:08:17 PM
Old 01-20-2013
Cache is a very good thing. It improves the performance of the OS. Do not reboot your server to clear cache.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

RHEL 4 U5 - Server immediate shutdown

Dear all, My server has shutdown frequently. It is AMD64, OS is RHEL 4 U5. I've seen the system log, before the shutdown occured: Jul 29 04:28:56 localhost kernel: EDAC k8 MC0: general bus error: participating processor(local node response), time-out(no timeout) memory transaction... (2 Replies)
Discussion started by: mr_bold
2 Replies

2. Solaris

To Shut down the server. Do the Maintainance and Start Up the server

Hello All I just want to know how to Shut Down the Solaris Machines( Servers ) for Maintainance and then Start Up the Machines ( Servers ) . I think I will have to Log In as root to do that . Also how do i Check if all the services running on that server before shut down are running... (6 Replies)
Discussion started by: supercops
6 Replies

3. Red Hat

Graphical console for RHEL 5 server

hi , i installed RHEL 5 server in one machine . i am able to login through putty . But not through Exceed . i mean to say i want a graphical user interface through exceed . some other machine i am able to log in through exceed . is there any configuration is there for that one . did i miss... (3 Replies)
Discussion started by: rateeshkumar
3 Replies

4. Red Hat

User (Profile) Specific Start Menu for RHEL 6.1 using KDE 4.3.4

I installed RHEL 6.1 with KDE 4.3.4 using LDAP on a PC and have now the problem to specifiy a user/Profile specific start menu. I have used already the kmenuedit tool and tailored for one user a specific menu, successfully. I changed as an example the konsole submenu. The kmenuedit was... (0 Replies)
Discussion started by: Gromit
0 Replies

5. Red Hat

RHEL 6.3 Errata Server?

I'm attempting to build a RHEL 6.3 yum errata server inside our company firewall with no luck. Is this something Red Hat attempts to prevent people from doing? I have done all the steps that I've been able to find to create a repository and configure it. My two repo files look like the... (2 Replies)
Discussion started by: redwing471
2 Replies

6. Red Hat

RHEL 4 Server con't Started....

Hi Friends, My Server is con't stated..it shows the below error.. Red hat exterprise Linux As Release 4(nahat) kernel 2.6.9-5.ELsmp on an i686 INIT : id "x" respawing too fast :disabled for 5 minutes... Please help help Thanks, Srinivas (1 Reply)
Discussion started by: srinivas814
1 Replies

7. Red Hat

Regarding connecting to internet from RHEL 5 server

Dear All, I have a RHEL 5 server of 64 bit . I have disabled the firewalls and added the name server also in resolv.conf. I want to connect to internet inorder to link the machine with Linux Network. # I could not connect to any website from this server for ex ping google.com is not... (8 Replies)
Discussion started by: jegaraman
8 Replies

8. Red Hat

DNS Service not Start in RHEL 6.4 64 bit

Hi All, I am new to linux and i am configuring DNS server but while i restart service it shows below given error. Please help to solve this error. # /etc/init.d/named restart Stopping named: Generating /etc/rndc.key: ... (2 Replies)
Discussion started by: Chintanghanti
2 Replies

9. Red Hat

Server Hang in Linux RHEL 5.5

Dear All , One of our Oracle Database Server , which got hanged a couple of days before , so that we could not login to the Server , but it was pinging. So we tried various options and at last we did a reboot of this server. To find out the root cause of the Server Hang , when i checked the... (2 Replies)
Discussion started by: jegaraman
2 Replies

10. UNIX and Linux Applications

Is it mandatory or not to stop/start Applcation server ehen Restarting Database Server?

Good afternoon I need your help please. There is a Mantenance Windos which needs to Restart de Database Server 192.x.x.97 to set up some configuration Is it mandatory or not to stop/start Applcation server that runs in 192.x.x.95 ? Is it mandatory or not to stop/start apache and Tomcat?... (3 Replies)
Discussion started by: alexcol
3 Replies
App::Cache(3pm) 					User Contributed Perl Documentation					   App::Cache(3pm)

NAME
App::Cache - Easy application-level caching SYNOPSIS
# in your class: my $cache = App::Cache->new({ ttl => 60*60 }); $cache->delete('test'); my $data = $cache->get('test'); my $code = $cache->get_code("code", sub { $self->calculate() }); my $html = $cache->get_url("http://www.google.com/"); $cache->set('test', 'one'); $cache->set('test', { foo => 'bar' }); my $scratch = $cache->scratch; $cache->clear; DESCRIPTION
The App::Cache module lets an application cache data locally. There are a few times an application would need to cache data: when it is retrieving information from the network or when it has to complete a large calculation. For example, the Parse::BACKPAN::Packages module downloads a file off the net and parses it, creating a data structure. Only then can it actually provide any useful information for the programmer. Parse::BACKPAN::Packages uses App::Cache to cache both the file download and data structures, providing much faster use when the data is cached. This module stores data in the home directory of the user, in a dot directory. For example, the Parse::BACKPAN::Packages cache is actually stored underneath "~/.parse_backpan_packages/cache/". This is so that permisssions are not a problem - it is a per-user, per-application cache. METHODS
new The constructor creates an App::Cache object. It takes three optional parameters: o ttl contains the number of seconds in which a cache entry expires. The default is 30 minutes. my $cache = App::Cache->new({ ttl => 30*60 }); o application sets the application name. If you are calling new() from a class, the application is automagically set to the calling class, so you should rarely need to pass it in: my $cache = App::Cache->new({ application => 'Your::Module' }); o directory sets the directory to be used for the cache. Normally this is just set for you and will be based on the application name and be created in the users home directory. Sometimes for testing, it can be useful to set this. my $cache = App::Cache->new({ directory => '/tmp/your/cache/dir' }); o enabled can be set to 0 for testing, in which case you will always get cache misses: my $cache = App::Cache->new({ enabled => 0 }); clear Clears the cache: $cache->clear; delete Deletes an entry in the cache: $cache->delete('test'); get Gets an entry from the cache. Returns undef if the entry does not exist or if it has expired: my $data = $cache->get('test'); get_code This is a convenience method. Gets an entry from the cache, but if the entry does not exist, set the entry to the value of the code reference passed: my $code = $cache->get_code("code", sub { $self->calculate() }); get_url This is a convenience method. Gets the content of a URL from the cache, but if the entry does not exist, set the entry to the content of the URL passed: my $html = $cache->get_url("http://www.google.com/"); scratch Returns a directory in the cache that the application may use for scratch files: my $scratch = $cache->scratch; set Set an entry in the cache. Note that an entry value may be an arbitrary Perl data structure: $cache->set('test', 'one'); $cache->set('test', { foo => 'bar' }); directory Returns the full path to the cache directory. Primarily useful for when you are writing tests that use App::Cache and want to clean up after yourself. If you are doing that you may want to explicitly set the 'application' constructor parameter to avoid later cleaning up a cache dir that was already in use. my $dir = $cache->directory; AUTHOR
Leon Brocard <acme@astray.com> COPYRIGHT
Copyright (C) 2005-7, Leon Brocard LICENSE
This module is free software; you can redistribute it or modify it under the same terms as Perl itself. perl v5.12.3 2009-12-08 App::Cache(3pm)
All times are GMT -4. The time now is 10:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy