LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-25-2010, 11:56 PM   #1
linux37
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Rep: Reputation: 0
Exclamation Linux application server is slow


Hi,
I am new to this forum and Linux, hope I am in write forum,if not please let me knoe relevant forum to post in.

Issue:

We recently shifted our applcation and database to LINUX from UNIX.

so now application server(weblogic 8.1) is on linux and oracle database 9i is on linux.

previously there is a process in application server(which access the Database dor the data) which took only 1 hour to run on UNIX after shifting to LINUX the same process is taking 4 to 5 hours to run.

but when individually ran the queries on the database it is quck than UNIX.

our ADMIN tried changing the kernel parameters for the database server, but it is still the same.

Can you please let me know what information I should provide to understand the problem more clearly.

Thanks.

Last edited by linux37; 10-25-2010 at 11:58 PM.
 
Old 10-26-2010, 12:51 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Is there any particular reason for running those versions, they're not exactly current ... ? You may want to enable JMX and take a look with jconsole to see what's happening. Also check whether there is anything obvious in the WL logs

cheers
 
Old 10-26-2010, 01:03 AM   #3
linux37
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the quick reply.

We shifted from linux to unix to improve the performance, as you know Linux is much faster.

and there is nothing wrong with WL logs.

Can you please tell me clearly about JMX and jconsole, as I am new to LINUX and I am not sure how to act on these kind of performance issues.

linux version:

Linux dev1 2.6.9-89.0.26.ELsmp #1 SMP Sun May 30 09:34:08 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

and UNIX is HP11
 
Old 10-26-2010, 06:32 AM   #4
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
Hi,

without any kind of knowledge about your hardware, system configuration, application and database configuration there will be no chance to help you.

What you can do as first step is:
- check system load during your slow action
- use top to identify the process which takes so long time
- use strace on your identified process to identify what takes this long time
- try to eliminate the problem which keeps the process hanging
 
Old 10-26-2010, 05:56 PM   #5
linux37
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
thnaks for that...

tried doing top...but didn't find any process which takes long time.

Will do trace on the process and post the result.

Thanks
 
Old 10-27-2010, 07:38 PM   #6
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Here's a link for the JMX config - http://download.oracle.com/javase/1....nt.html#remote

If you need some examples I can post them but it should be straight forward

cheers
 
Old 10-28-2010, 12:31 AM   #7
linux37
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
hi,

I did strace on the script which in turns call java.

In the strace log - the record is processed and updated in the database, but in between I can see a message likie this:

[pid 14333] 12:05:00 tgkill(14333, 14382, SIGPWR) = 0 <0.000018>
[pid 14333] 12:05:00 futex(0x3689b1a5e0, FUTEX_WAIT, 0, NULL <unfinished ...>
[pid 14333] 12:05:00 tgkill(14333, 14382, SIGPWR) = 0 <0.000018>
[pid 14333] 12:05:00 futex(0x3689b1a5e0, FUTEX_WAIT, 0, NULL <unfinished ...>
[pid 14382] 12:05:00 <... futex resumed> ) = -1 EINTR (Interrupted system call) <0.982761>
[pid 14382] 12:05:00 --- SIGPWR (Power failure) @ 0 (0) ---
[pid 14382] 12:05:00 futex(0x3689b1a5e0, FUTEX_WAKE, 1) = 1 <0.000365>
[pid 14333] 12:05:00 <... futex resumed> ) = 0 <0.004612>
[pid 14382] 12:05:00 rt_sigsuspend(~[INT QUIT ABRT TERM XCPU RTMIN RT_1] <unfinished ...>
[pid 14333] 12:05:00 tgkill(14333, 14382, SIGXCPU) = 0 <0.000024>
[pid 14382] 12:05:00 --- SIGXCPU (CPU time limit exceeded) @ 0 (0) ---
[pid 14382] 12:05:00 <... rt_sigsuspend resumed> ) = -1 EINTR (Interrupted system call) <0.026197>
[pid 14382] 12:05:00 rt_sigreturn(0x40a00960) = -1 EINTR (Interrupted system call) <0.000008>
[pid 14382] 12:05:00 rt_sigreturn(0x2) = -1 EINTR (Interrupted system call) <0.000009>

Please let me know about this error.

Is this message/error causing delay in my process?

Thanks
 
Old 10-28-2010, 05:38 PM   #8
linux37
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Can anyone please tell me about the aboce error or message, it is there after every record is processed with the database in strace log.

Thanks
 
Old 10-28-2010, 09:20 PM   #9
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
This
Quote:
--- SIGPWR (Power failure) @ 0 (0) ---
is a little worrying, its saying the system power has failed, maybe cpu is on the way out .. ?
 
Old 10-28-2010, 10:08 PM   #10
linux37
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
which cpu is it Linux or my pc? and the above message is repeating, but the end of the day the process is completed.

What can I do about it?
 
Old 10-31-2010, 08:09 PM   #11
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Maybe the linux system has some hardware issues
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to troubleshoot a complaint of a slow application in Linux nbkq88x Linux - Newbie 3 07-28-2009 09:05 AM
Installation of Linux as application server phani007 Linux - Newbie 1 04-02-2008 03:25 AM
Linux distribution / server application jiu Linux - Distributions 1 01-31-2006 03:25 PM
Linux for Server Application linuxman356 Linux - Newbie 19 07-21-2005 09:34 AM
Why application on linux running slow compare on Windows? garyura Linux - General 15 08-28-2002 05:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration