dbTalk Databases Forums  

SA 11.0.1 on Linux

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss SA 11.0.1 on Linux in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
 
Posts: n/a

Default SA 11.0.1 on Linux - 12-07-2009 , 05:28 AM






I have two problems ...

1. Why is my db-server (dbserv11) under Linux (RedHat Linux) lasting around
20% CPU usage ... although nothing should happen on the database. There is
no client connected and it does not run batch jobs from me.

2. How I can get out of a Linux script to test whether a database /
db-server is started. Dbping I wanted to use it. However, I do not come so
clear to the query return value.

Any ideas?

Reply With Quote
  #2  
Old   
 
Posts: n/a

Default Re: SA 11.0.1 on Linux - 12-07-2009 , 05:48 AM






I made a mistake ...
the dbserver runs in a VM on an 8-core system and the VM creates lasting
usage around 20%.
'top' certifies dbserv11 an occupancy rate of 160 - 170% (on a VM with 2
cores)


<Ingmar> schrieb im Newsbeitrag news:4b1ce6cc (AT) forums-1-dub (DOT) ..
Quote:
I have two problems ...

1. Why is my db-server (dbserv11) under Linux (RedHat Linux) lasting
around 20% CPU usage ... although nothing should happen on the database.
There is no client connected and it does not run batch jobs from me.

2. How I can get out of a Linux script to test whether a database /
db-server is started. Dbping I wanted to use it. However, I do not come so
clear to the query return value.

Any ideas?

Reply With Quote
  #3  
Old   
Nathan Auch [Sybase]
 
Posts: n/a

Default Re: SA 11.0.1 on Linux - 12-07-2009 , 08:11 AM



Hi Ingmar,

I'm not sure that I understand your clarification. Are you indicating
that the VM itself is occupying 20% CPU and the database server is
remaining idle as it should? Or are you still seeing a problem?

As for #2. You can use the dbping utility to check for the existence of
a database server from a script. The dbping utility finishes with a 0
exit status when the requested server is found. You can use this in the
usual way to take action when the dbping utility finds a running server.
For example in bourne shell:

dbping -q -c "eng=myserver" && echo "server found"

or

dbping -q -c "eng=myserver"
if [ $? -eq 0 ] ; then
echo "server found"
fi

will only output "server found" to the console if dbping can contact
"myserver".

Nathan Auch
Sybase iAnywhere

Ingmar wrote:
Quote:
I made a mistake ...
the dbserver runs in a VM on an 8-core system and the VM creates lasting
usage around 20%.
'top' certifies dbserv11 an occupancy rate of 160 - 170% (on a VM with 2
cores)


Ingmar> schrieb im Newsbeitrag news:4b1ce6cc (AT) forums-1-dub (DOT) ..
I have two problems ...

1. Why is my db-server (dbserv11) under Linux (RedHat Linux) lasting
around 20% CPU usage ... although nothing should happen on the database.
There is no client connected and it does not run batch jobs from me.

2. How I can get out of a Linux script to test whether a database /
db-server is started. Dbping I wanted to use it. However, I do not come so
clear to the query return value.

Any ideas?



Reply With Quote
  #4  
Old   
 
Posts: n/a

Default Re: SA 11.0.1 on Linux - 12-07-2009 , 08:42 AM



Hi Nathan,

I have still the problem...
The second message was an additional message that dbserv11 not consumed only
20% ... 20% only of the 8 CPUs of the server-node.

Within the VM (VM has 2 CPU) 'top' certifies an occupancy rate of 160-170%.

Clear now?

Thx for answer #2.


"Nathan Auch [Sybase]" <nauch (AT) sybase (DOT) com> schrieb im Newsbeitrag
news:4b1d0d15$1 (AT) forums-1-dub (DOT) ..
Quote:
Hi Ingmar,

I'm not sure that I understand your clarification. Are you indicating that
the VM itself is occupying 20% CPU and the database server is remaining
idle as it should? Or are you still seeing a problem?

As for #2. You can use the dbping utility to check for the existence of a
database server from a script. The dbping utility finishes with a 0 exit
status when the requested server is found. You can use this in the usual
way to take action when the dbping utility finds a running server. For
example in bourne shell:

dbping -q -c "eng=myserver" && echo "server found"

or

dbping -q -c "eng=myserver"
if [ $? -eq 0 ] ; then
echo "server found"
fi

will only output "server found" to the console if dbping can contact
"myserver".

Nathan Auch
Sybase iAnywhere

Ingmar wrote:
I made a mistake ...
the dbserver runs in a VM on an 8-core system and the VM creates lasting
usage around 20%.
'top' certifies dbserv11 an occupancy rate of 160 - 170% (on a VM with 2
cores)


Ingmar> schrieb im Newsbeitrag news:4b1ce6cc (AT) forums-1-dub (DOT) ..
I have two problems ...

1. Why is my db-server (dbserv11) under Linux (RedHat Linux) lasting
around 20% CPU usage ... although nothing should happen on the database.
There is no client connected and it does not run batch jobs from me.

2. How I can get out of a Linux script to test whether a database /
db-server is started. Dbping I wanted to use it. However, I do not come
so clear to the query return value.

Any ideas?


Reply With Quote
  #5  
Old   
Nathan Auch [Sybase]
 
Posts: n/a

Default Re: SA 11.0.1 on Linux - 12-07-2009 , 09:07 AM



Hi Ingmar,

Are you able to connect to the database server? Can you call the
sa_conn_info() procedure and see if anything is reported?

Nathan Auch
Sybase iAnywhere

Ingmar wrote:
Quote:
Hi Nathan,

I have still the problem...
The second message was an additional message that dbserv11 not consumed only
20% ... 20% only of the 8 CPUs of the server-node.

Within the VM (VM has 2 CPU) 'top' certifies an occupancy rate of 160-170%.

Clear now?

Thx for answer #2.


"Nathan Auch [Sybase]" <nauch (AT) sybase (DOT) com> schrieb im Newsbeitrag
news:4b1d0d15$1 (AT) forums-1-dub (DOT) ..
Hi Ingmar,

I'm not sure that I understand your clarification. Are you indicating that
the VM itself is occupying 20% CPU and the database server is remaining
idle as it should? Or are you still seeing a problem?

As for #2. You can use the dbping utility to check for the existence of a
database server from a script. The dbping utility finishes with a 0 exit
status when the requested server is found. You can use this in the usual
way to take action when the dbping utility finds a running server. For
example in bourne shell:

dbping -q -c "eng=myserver" && echo "server found"

or

dbping -q -c "eng=myserver"
if [ $? -eq 0 ] ; then
echo "server found"
fi

will only output "server found" to the console if dbping can contact
"myserver".

Nathan Auch
Sybase iAnywhere

Ingmar wrote:
I made a mistake ...
the dbserver runs in a VM on an 8-core system and the VM creates lasting
usage around 20%.
'top' certifies dbserv11 an occupancy rate of 160 - 170% (on a VM with 2
cores)


Ingmar> schrieb im Newsbeitrag news:4b1ce6cc (AT) forums-1-dub (DOT) ..
I have two problems ...

1. Why is my db-server (dbserv11) under Linux (RedHat Linux) lasting
around 20% CPU usage ... although nothing should happen on the database.
There is no client connected and it does not run batch jobs from me.

2. How I can get out of a Linux script to test whether a database /
db-server is started. Dbping I wanted to use it. However, I do not come
so clear to the query return value.

Any ideas?


Reply With Quote
Reply




Thread Tools
Display Modes

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

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.