Operating System - HP-UX
1821804 Members
3154 Online
109637 Solutions
New Discussion юеВ

Application launch is very slow

 
Satya_6
Frequent Advisor

Application launch is very slow

Hi,

I have a MOTIF based application and on one HP host, the launching of the application is very slow. It takes more than 5 minutes to launch the application. I have attached the output of the command "tusc -f -p -l -T "" -v -o logfile.txt myApp"

Please help me out in solving this problem.

If I have the flexlm license running locally on the same host, the application launch is fast and normal, if it is on a remote host, then it takes around 5 minutes to launch the application.


TIA
Satya
10 REPLIES 10
Steven E. Protter
Exalted Contributor

Re: Application launch is very slow

Shalom,

The most common cause of this is slow hostname resolution. You may be able to speed hostname resolution by adding a record to /etc/hosts for the system the flexlm license server is runnin gon.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Satya_6
Frequent Advisor

Re: Application launch is very slow

Hi Steven E. Protter,

Thanks for the quick response. I would try that and update you. Does the tusc report I attached suggest the same?

Thanks and Regards
Satya
Bill Hassell
Honored Contributor

Re: Application launch is very slow

Is the remote display across a WAN? If so, Xwindows is extremely busy negotiating thousands of items like colors, dimensions, image depth, etc. If the ping times between the two machines are in the 100's of milliseconds, you'll have to live with the delays. It doesn't matter if the link speed is fast (like a T3 link at 45Mbits), only that the turnaround time on the WAN is more than a few milliseconds. Xwindows is a poor choice for wide area networking.


Bill Hassell, sysadmin
Reshma Malusare
Trusted Contributor

Re: Application launch is very slow

Hi Satya,
According to me,In such cases,If application is taking lots of time,then first check for host name resolution.
You check the entries in the /etc/hosts.

see following link:
http://docs.hp.com/en/B2355-60105/hostname.5.html

Regards
Reshma
James George_1
Trusted Contributor

Re: Application launch is very slow


Hi

If you are not using DNS on this server, rename your /etc/resolve.conf file .

Also , check your memory settings in the kernel . Check the values of dbc_max_pct and dbc_min_pct . these should be set to 10 and 5 respectively. Be defualt, the dbc_max_pct is 50 , that means the system is holding 50 % of your memory !!

# kmtune -l > /tmp/km.out and check these values...

If you have to reset it , it requires a reboot.

Rgds / james
forum is for techies .....heaven is for those who are born again !!
Satya_6
Frequent Advisor

Re: Application launch is very slow

Hi,

First, I guess I didn't communicate the problem correctly. It is not a remote display. Display is always to the local host. Only the flex license server is running on a remote host. If we have a flex license server running on the same host, then the application launches normally.

We tried using the IP address itself to define the flex license server (something like 8888@10.20.30.3) and still it is the same.


TIA
Satya
Satya_6
Frequent Advisor

Re: Application launch is very slow

Hi,

if I add the entry in the /etc/hosts, the application launch is normal. We are using the NIS to resolve the names. Could you please give some clues if we could get the same performance without the /etc/hosts hack

TIA
Satya
Reshma Malusare
Trusted Contributor

Re: Application launch is very slow

Hi Satya,
Please read following:

The Network Information Service (NIS) stores and manages configuration data for networkedclients by means of a distributed database. It is typical of many network configurations that many clients make use of identical configuration files. NIS relieves the client systems and their administrators of the burden of keeping these files current by storing copies of the
configuration files on NIS servers. NIS clients access these files rather than making use of local copies. This has several advantages:
├в ┬в NIS clients need not use up local storage to keep copies of these files.
├в ┬в The configuration files can be maintained in one location, from which accurate and
up-to-date copies may be disseminated across the network.
---->>>
Examples of configuration files maintained under NIS are /etc/hosts, /etc/passwd, and
/etc/group. Data provided by many other files may also be managed under NIS.

http://docs.hp.com/en/J2716-90017/ch07s02.html?jumpid=reg_R1002_USEN
OldSchool
Honored Contributor

Re: Application launch is very slow

on which server(s) did you add entries to the file "/etc/hosts"?

the flex license server, the client or both?
Bill Hassell
Honored Contributor

Re: Application launch is very slow

Check your /etc/nsswitch.conf file. Do NOT use the compat option for hosts name resolution. Put something like this into that line:

hosts: files [NOTFOUND=continue UNAVAIL=continue] dns


Bill Hassell, sysadmin