01-25-2017
Have you made sure it is the application (and, for instance, NOT the system itself) that hangs for a few seconds? If, i.e., the system would be in a state of heavy swapping it might look like the application hangs but in fact it is the system that blocks the application because it has to get missing memory pages from swap to memory.
I hope this helps.
bakunin
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
I Installed Tomcat in an remote linux server (/usr/tomcat)and start service, using ./startup.sh (and tried with ./catalina.sh too).
//----------------------------------------------------------------//
# ./startup.sh
Using CATALINA_BASE: /usr/tomcat/apache-tomcat-6.0.16/
Using... (1 Reply)
Discussion started by: gothama
1 Replies
2. Shell Programming and Scripting
hi,
I need a command that restart the tomcat server.
for example for restart the tomcat i am using following command, /etc/init.d/tomcat restart ..but sometimes is not working...might be i want to use java code access this peace of script.
like using the grep and ps commands can i use?... (2 Replies)
Discussion started by: sankar reddy
2 Replies
3. IP Networking
Hello,
I have a socket programming code to do chatting(both server and client).
But this is limited to a single machines with multi users.
But my target is to perform chat operation on multiple IP addresses in a given LAN in college.
Can you please tell me if I can use TOMCAT as my server to... (3 Replies)
Discussion started by: nsharath
3 Replies
4. Solaris
I do not know the difference between the apache-http and the apche-Tomcat.Is they are differentiated on their version or on their features.:confused: (2 Replies)
Discussion started by: jayaprakash
2 Replies
5. Shell Programming and Scripting
Hello all,
I am working on a script to automate the process of restarting some tomcat servers. The versions of tomcat are pretty old and it often happens that they don't shut down gracefully and the PID needs to be manually killed. I am having a bear of a time getting a consistent PID from ps... (1 Reply)
Discussion started by: dkaplowitz
1 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
I am getting confused with the terms below. All I know is an application can be installed on a server. But I see the following terms used in a company. All of them are installed on same Unix box. Could you please help me out in layman terms as to what these exactly means. (PS: I don't... (1 Reply)
Discussion started by: tostay2003
1 Replies
7. Programming
Hi,
I have installed
following software on my linux machine.
Is there anything else required to run jsp pages on linux machine?
Please Help
Here are some details that might be helpful.
# lsb_release -a
LSB Version: ... (3 Replies)
Discussion started by: pinga123
3 Replies
8. Red Hat
Hi,
We have a OEL6.1 installed on our server.
We want developers to view there application logs generated on the server, but doesn't really want to give them access to server machine.
Can someone please suggest how can we configure apache/httpd to create a url which will show all files in... (1 Reply)
Discussion started by: shrshah64
1 Replies
9. UNIX for Advanced & Expert Users
Hi all,
on our application server we have the following script that monitor the status of the website, my problem here is that i have edite the retries from 3 to 5,
and the timewait to 120 second,
so the script should check 5 times every 2 minutes, and if the fifth check fails it must restart... (0 Replies)
Discussion started by: charli1
0 Replies
10. UNIX for Advanced & Expert Users
Hi,
I have been assigned a task to build a server with these requirements :
> has multiple tomcats running under the same apache.
> tomcat & jdk has to be binded with apache.
> latest openssl with all necesarry "mod" to bind with apache & tomcat.
I am fairly new to... (1 Reply)
Discussion started by: anaigini45
1 Replies
LEARN ABOUT NETBSD
swapon
SWAPON(3) BSD Library Functions Manual SWAPON(3)
NAME
swapon -- add a swap device for interleaved paging/swapping
SYNOPSIS
#include <unistd.h>
int
swapon(const char *special);
DESCRIPTION
This interface is provided for compatibility only and has been obsoleted by swapctl(2).
swapon() makes the block device special available to the system for allocation for paging and swapping. The names of potentially available
devices are known to the system and defined at system configuration time. The size of the swap area on special is calculated at the time the
device is first made available for swapping.
RETURN VALUES
If an error has occurred, a value of -1 is returned and errno is set to indicate the error.
ERRORS
swapon() succeeds unless:
[ENOTDIR] A component of the path prefix is not a directory.
[ENAMETOOLONG]
A component of a pathname exceeded {NAME_MAX} characters, or an entire path name exceeded {PATH_MAX} characters.
[ENOENT] The named device does not exist.
[EACCES] Search permission is denied for a component of the path prefix.
[ELOOP] Too many symbolic links were encountered in translating the pathname.
[EPERM] The caller is not the super-user.
[ENOTBLK] special is not a block device.
[EBUSY] The device specified by special has already been made available for swapping
[EINVAL] The device configured by special was not configured into the system as a swap device.
[ENXIO] The major device number of special is out of range (this indicates no device driver exists for the associated hardware).
[EIO] An I/O error occurred while opening the swap device.
[EFAULT] special points outside the process's allocated address space.
SEE ALSO
swapctl(2), swapctl(8), swapon(8)
HISTORY
The swapon() function call appeared in 4.0BSD and was removed NetBSD 1.3
BUGS
This call will be upgraded in future versions of the system.
BSD
June 4, 1993 BSD