BIND 9.2.4 Slow on Solaris 10 01/06

Hi There,
Have an issue with 2 x Solaris 10 (Sparc) external DNS servers that we put in. The servers are very quick to resolve local zone files and any cached queries. When i'm requesting a new internet DNS record that is not in the cache, it can take 5-6 seconds for the query to come back.
I've been doing some reading and other people have had similar issues with IPV4/IPV6 queries. When looking at my bind debug logs i can see that requests go out for AAAA records. The servers are not running IPV6 themselves.
Is there any way to disable IPV6 in Bind 9.2.4 or has anyone come across this problem before and its something completely different?
Thanks

We only have one search domain that is used internally, the external dns servers host about 25 zones on them that they are authoritive for. The 2 external servers are also used by the 2 internal servers to handle internet resolution. Its only slow when requesting FQDN's from the internet that are not int he cache. If i clear the bind cache and look up say www.microsoft.com it takes 5-6 seconds to resolve. Next time its instant.
Here is most of the named.conf (cut out some of the hosted zones to limit the length);
acl bogusnets { 0.0.0.0/8; 2.0.0.0/8; 224.0.0.0/3; };
acl local { 172.19.220.0/32; 172.22.280.0/32; };
acl local { 127.0.0.1/8; };
options {
     directory "/var/zones";
     allow-recursion { local; };
     allow-transfer { 172.19.82.17; 172.19.220.4; 172.19.280.5; };
     blackhole { bogusnets; };
logging {
     category default { default_log; };
     category queries { query_log; };
     category network { network_log; };
     channel default_log {
          file "/var/logs/default.log" versions 7 size 10m;
          print-category     yes;
          print-severity     yes;
          print-time     yes;
     channel query_log {
          file "/var/logs/query.log" versions 7 size 10m;
          print-category     yes;
          print-severity     yes;
          print-time     yes;
     channel network_log {
          file "/var/logs/network.log" versions 7 size 10m;
          print-category     yes;
          print-severity     yes;
          print-time     yes;
     category lame-servers { null; };
zone "." {
     type hint;
     file "named.cache";
zone "0.0.127.IN-ADDR.ARPA" {
     type master;
     file "master/db.reverse.127.0.0";
# Reverse lookups for 172.20
zone "20.172.IN-ADDR.ARPA" {
     type master;
     file "master/db.reverse.172.20";
# Reverse lookups for 172.19
zone "191.150.IN-ADDR.ARPA" {
     type master;
     file "master/db.reverse.172.19";
# Reverse lookups for 172.20
zone "205.155.IN-ADDR.ARPA" {
     type master;
     file "master/db.reverse.172.20";
zone "example.com" {
     type master;
     file "master/db.example.com";     
zone "abc.int" {
     type stub;
     file "slave/db.abc.int";
     allow-query { internal; local; };
     masters { 172.20.7.120; 172.20.7.121; };
zone "testing.com" {
     type stub;
     file "slave/db.testing.com";
     allow-query { internal; local; };
     masters { 172.20.8.161; 172.20.7.119; };
Message was edited by:
jgooding

Similar Messages

  • Java serialization is slow in Solaris 10

    Hi,
    I'm think to migrate from Linux to Solaris 10, because of the better support for Java any many other things, but in the first test the java web application, we get a too slower response in Solaris, with a time of 03 minutes and 12 seconds for one transaction, but this same transaction using Linux on same hardware and database the transaction concludes in 4 seconds, I think that this maybe a misconfiguration on Solaris.
    In this application, all transaction are via JavaBean serialization over HTTP using an Applet that serializes/deserializes objects to a Servlet, seeing the tcp trace of http requests, after the server receives this requests, we get a pattern of 15 seconds to reply for every request.
    Then, maybe a mistake of TCP configuration in Solaris? or Java Applet Serialization to Servlet is slow in Solaris?
    Exists a best way to install Solaris for better performance with Java?
    Thanks for any help or ideas
    Cl�vis

    I obtained a T1000 on the 60 day try and buy with solaris 10. I've installed my java application on it. On start up the first thing the application does is de-serialize a huge java object.
    On my laptop (winXP single drive) this takes about 40 seconds.
    On the T1000 (single drive c0t0d0 <SUN80G cyl 65533 alt 2 hd 16 sec 149) it takes about 12 minutes. The application is identical.
    The java version on my laptop is 1.5.0_6
    The java version on my T1000 is 1.5.0_10
    I've doubled check to make sure the read and write cache is enabled on the disk.
    This is a major problem for me. Any ideas? The T1000 is doing nothing else. It is 100% idle before I start the java application.
    My application runs loads of threads and so I was hoping to get excellent performance which I haven't tested yet. However with a start up time of 12 minutes this is a no go straight away.
    I understand it is more to do with the disc and solaris 10, but can anyone explain to me why my laptop should be so much faster?>

  • Application runs slower on Solaris

    We have developed an Application in Java (Servlets, JSP & Core Java classes including thread).
    My Application runs fast on Windows, but its terribly slow on Solaris. When the application is run on Solaris the CPU usage is very less around 3 to 5 % only and there is no major io bound operation also. Please comment on this behaviour when am running the application on Solaris.
    For eg: A while loop in my program took around 16 msecs to execute in Windows machine, but the same while loop is taking 250 msecs to run in solaris.
    Note: The solaris machine is very powerful than the desktop windows machine.
    Thanks & Regards,
    Salin

    Which version of Solaris are you running and what threading library is currently in use? Did you use some profiling application to arrive at the benchmark results you obtained or some other means were used? Does the code within the while loop call any classes making use of Java threads and synchronization mechanisms?

  • C++ Dependencies Generation is Very Slow in Solaris 10..

    Hi
    We are also having Slow make dependencies problem. It is taking more than 24 hrs to make dependencies in SOLARIS 10.
    OS : SOLARIS 10
    C++ COmpiler: Sun Studio 10: C++ 5.7 Compiler
    It is very slow when it comes to generating dependencies using 'makedepend'....
    Looking for your great help...
    thanks
    chakra

    Hello,
    Currently I'm trying to use the CC -xM compiler option to generate dependency info for source files.
    By default I think that the -xM option assumes that all the object files are in the same directory as the output file
    Suppose if the object files are in a different directory than the source files then how does the -xM recoginize it??
    Because when I give in my makefiel as given below, depend option works fine.
    $(OBJS):%.o:%.cxx
    $(CXX) -xM1 $(CFLAGS) $< > $*.P
    $(CXX) $(CFLAGS) $(@F:.o=.cxx) -o $@
    -include $(SRCS:.cxx=.P)
    But when the object files are in a different directory as given below it does not work properly.
    $(OBJS):$(OUTPUT_DIR)/%.o:%.cxx
    $(CXX) -xM1 $(CFLAGS) $< > $(OUTPUT_DIR)/$*.P
    $(CXX) $(CFLAGS) $(@F:.o=.cxx) -o $@
    -include $(SRCS:%.cxx=$(OUTPUT_DIR)/%.P)
    From what I found when -xM1 ouputs info it assumes that alll the object files are in the same directory as the source files.
    When I give a "make" in the source directory it displays like this.
    CEventQueue.o : CEventQueue.cxx
    CEventQueue.o : CEventQueue.h
    CEventQueue.o : ../../pdfcore/src//CCoQueueService.h
    CEventQueue.o : ../../pdfcore/src//CCoPthreadObj.h
    CEventQueue.o : ../../pdfcommon/src//CPdfObject.h
    CEventQueue.o : ../../pdfcommon/src//CPdfTrace.h
    CEventQueue.o : ../../pdfcommon/src//CPdfException.h
    CEventQueue.o : ../../pdfcommon/src//PdfType.h
    But actually it should refer the .o's like this.
    ../../build/CEventQueue.o : CEventQueue.cxx where ../../build is the OUTPUT_DIR.
    I found that there is no CC compiler option for adding prefix to object files.
    Could you tell me what to do now.??All the makefiles in our project create the .o files in a seperate directory other than the source directory.
    Thanks in advance,
    GA

  • Binding is 60 times slower than non-binding

    Hi,
    I have a quite serious problem using binding with Toplink. My configuration is
    Toplink 9.0.4.5
    Oracle 10g EE 10.2.0.4.0 (64 Bit, Partitioning, Data Mining and Real Application Testing options)
    Oracle Thin JDBC Driver (either 11.2.0.1.0 or 10.2.0.4.0)
    running in a Tomcat 5.5 environment.
    Our usual configuration is with BindAllParameters = "true", which is fine in 99% of all cases. But in one special case, which is the search functionality of our application (insurance agents management application),
    a SQL is about 60 times slower with binding, than without binding. I attach the SQL at the end of the message, but what is quite special about it is, that it uses quite a large amount of "IN" clauses. I found an earlier
    posting stating, that Toplink (or Oracle JDBC) has a problem with IN-clauses and binding. Can anyone confirm this?
    As I said, the SQL is part of a people search functionality, so there is a great amount of different variations. Not all variations show this behaviour, so I assume, that Oracle probably uses different execution plans regarding using prepared statments or direct execution. Can anyone confirm this also?
    Lastly, is there any way to record the execution plan inside the Tomcat application?
    Thanks in advance for any help, as I said before, this problem is currently very critical, since we are 2 weeks before production,
    Thorsten.
    Here is the example SQL (with the bind varaibles already replaced):
    /* Formatted on 2010/02/08 10:27 (Formatter Plus v4.8.8) */
    SELECT t0.partner_id
      FROM aidatint.papartner t0
    WHERE (    (    (    (    (   (    (t0.schwebe_kz = 'S')
                                    AND (t0.aktgfid_rid = '126562119515400004')
                                OR (    (t0.schwebe_kz = 'O')
                                    AND (t0.aktgfid_rid <> '126562119515400004')
                           AND (   (t0.gueltigbis_dt IS NULL)
                                OR (t0.gueltigvon_dt < t0.gueltigbis_dt)
                      AND (t0.mcname_txt = 'MEIER')
                 AND (t0.partner_id IN (
                         SELECT DISTINCT t1.partner_id
                                    FROM aidatint.paadresse t1
                                   WHERE (    (    (   (    (t1.schwebe_kz = 'S'
                                                        AND (t1.aktgfid_rid =
                                                                '126562119515400004'
                                                    OR (    (t1.schwebe_kz = 'O'
                                                        AND (t1.aktgfid_rid <>
                                                                '126562119515400004'
                                               AND (   (t1.gueltigbis_dt IS NULL
                                                    OR (t1.gueltigvon_dt <
                                                                  t1.gueltigbis_dt
                                          AND (t1.mcort_txt = 'KOELN')
            AND (t0.partner_id IN (
                    SELECT t2.partner_id
                      FROM aidatint.paparolle t2
                     WHERE (    (    (    (   (    (t2.schwebe_kz = 'S')
                                               AND (t2.aktgfid_rid =
                                                              '126562119515400004'
                                           OR (    (t2.schwebe_kz = 'O')
                                               AND (t2.aktgfid_rid <>
                                                              '126562119515400004'
                                      AND (    (t2.gueltigvon_dt <=
                                                   TO_DATE ('20100208',
                                                            'YYYYMMDD')
                                           AND (   (t2.gueltigbis_dt >
                                                       TO_DATE ('20100208',
                                                                'YYYYMMDD'
                                                OR (t2.gueltigbis_dt IS NULL)
                                 AND (t2.geschobjtyp_typ = 'VMVT')
                            AND (t2.goid_id IN (
                                    SELECT t3.vermittlervertragid_id
                                      FROM aidatint.prvvsvermittlervertrag t3
                                     WHERE (    (   (    (t3.schwebe_kz = 'S')
                                                     AND (t3.aktgfid_rid =
                                                              '126562119515400004'
                                                 OR (    (t3.schwebe_kz = 'O')
                                                     AND (t3.aktgfid_rid <>
                                                              '126562119515400004'
                                            AND (t3.kumulnr_txt IN (
                                                    SELECT t4.bereichsnr_txt
                                                      FROM aidatint.prvvsstrukturangausdienst t4
                                                     WHERE (    (    (   (    (t4.schwebe_kz =
                                                                                  'S'
                                                                          AND (t4.aktgfid_rid =
                                                                                  '126562119515400004'
                                                                      OR (    (t4.schwebe_kz =
                                                                                  'O'
                                                                          AND (t4.aktgfid_rid <>
                                                                                  '126562119515400004'
                                                                 AND (    (t4.gueltigvon_dt <=
                                                                              TO_DATE
                                                                                 ('20100208',
                                                                                  'YYYYMMDD'
                                                                      AND (   (t4.gueltigbis_dt >
                                                                                  TO_DATE
                                                                                     ('20100208',
                                                                                      'YYYYMMDD'
                                                                           OR (t4.gueltigbis_dt IS NULL
                                                            AND (t4.schluessel_txt LIKE
                                                                    '##TH###1###4%'
           )

    Odd, I would assume it is a db/JDBC issue. You can confirm this by trying the same through raw JDBC, or enabling the TopLink profiler.
    It could be related to the large size of the SQL and large number of parameters to the call. You may wish to check with the JDBC group to see what the issue is.
    You can disable binding for just this query, to get the binding benefit elsewhere and avoid the binding issue for just this query.
    EclipseLink: http://www.eclipselink.org

  • Sun JDK 1.3 slower on Solaris 8 than Linux 6.2

    I'm doing platform testing to determine which OS will run my application the fastest. I
    have a RH Linux 6.2 box with dual p3-700's /512 Mb RAM running WLS 5.1 sp 5 with
    Sun's JDK 1.3 and a Sun E-250 running Solaris 8, with dual Sparc 400's / 512 Mb
    RAM running WLS 5.1 sp5 with Sun's JDK 1.3 Amazingly, the Linux box runs about
    2x to 3x faster under load than the Sun box. Based on the hardware being used, one
    would assume the Sun box would be AT LEAST as fast if not FASTER than the Linux
    box. Surely, Sun didn't write a JDK for Linux that outperforms Solaris. There are alot
    of different features/switches to the 1.3 JDK, I tried using different combinations and
    so far came to the conclusion that the JVM should be invoked with the following:
    - server -XX:+UseThreadPriorities -Xms256m -Xmx384m

    If you are just looking for raw performance, you will do better on x86.
    Even at the same mhz, you will typically get better performance from an x86
    processor (e.g. P3). If you are looking to save money up front, obviously
    you can't beat commodity x86 hardware running Linux. There are those who
    believe that you save a lot of money (and headache) over the long term by
    going with Sun Sparc running Solaris.
    Cameron Purdy
    Tangosol, Inc.
    http://www.tangosol.com
    +1.617.623.5782
    WebLogic Consulting Available
    "Chris" <[email protected]> wrote in message news:[email protected]...
    >
    Well the question I was asking was what kind of analysis to do.
    I'm not sure what else to tweak, configure, or manipulate. The
    app doesn't hit a db in testing, rather we have it reading from a
    rowset locally on disk to eliminate any latency associated with db access.It is highly CPU bound, the piece of the app in question processes data
    through some complex algorithms to provide data back to the web server. Do
    you think the SPARC 400's are really 2x slower than the P3-700's? If that's
    the case, then
    it would be a hard sell to run a java app on a Sun box at 5x the cost ofrunning it on Linux.
    >
    Thanks,
    -Chris
    Rob Woollen <[email protected]> wrote:
    You'd have to do some more analysis to figure out why the Linux box is
    faster.
    What is your application doing under load? Are you hitting a database?
    Are you cpu-bound, io-bound etc?
    FWIW, if you were cpu-bound, a p3-700 is quite a bit faster than a
    Sparc-400. However, web applications are rarely cpu-bound.
    -- Rob
    Chris Cosie wrote:
    I'm doing platform testing to determine which OS will run my
    application the fastest. I
    have a RH Linux 6.2 box with dual p3-700's /512 Mb RAM running WLS 5.1sp 5 with
    Sun's JDK 1.3 and a Sun E-250 running Solaris 8, with dual Sparc 400's/ 512 Mb
    RAM running WLS 5.1 sp5 with Sun's JDK 1.3 Amazingly, the Linux boxruns about
    2x to 3x faster under load than the Sun box. Based on the hardwarebeing used, one
    would assume the Sun box would be AT LEAST as fast if not FASTER thanthe Linux
    box. Surely, Sun didn't write a JDK for Linux that outperforms Solaris.There are alot
    of different features/switches to the 1.3 JDK, I tried using differentcombinations and
    so far came to the conclusion that the JVM should be invoked with thefollowing:
    - server -XX:+UseThreadPriorities -Xms256m -Xmx384m

  • Telnet from Windows PC is very slow to Solaris x86, after Net linked

    (Sorry about the re-post. I posted in the wrong group earlier)
    I got the following info from this forum, in regards to configuring my Solaris x86 to link to the Net:
    # echo 192.168.0.1 > /etc/defaultrouter
    # route add default 192.168.0.1
    # echo nameserver 192.168.0.1 >> /etc/resolv.conf
    # cp /etc/nsswitch.dns /etc/nsswitch.conf
    So I did the above steps, reboot the Solaris, and my Solaris system can link to the Net fine afterwards. But ever since it had Net access, another problem is created.
    Whenever I telnet using a command line from a Windows XP computer, it takes a long time to telnet to this Solaris system. Before, I would see the Solaris login prompt for telnet in a few seconds. Now, it's about 1 minute. Plus, if I try to use an xterminal software from that PC to link to the Solaris x86, it hangs.
    So after I undo all the 4 commands above, reboot the Solaris computer, all these problems disappear. I can telnet from my Windows PC to this Solaris system very quickly. However, I no longer have Internet access from my Solaris.
    Anyone knows how I can fix this problem? Thanks.

    It sounds like a name resolution issue. Can you post the contents of your /etc/nsswitch.conf file for us?

  • HELP: WL 8.1 run unexpectedly slow on solaris 9 with low CPU utilization

    Hi All
    I have setup my app to run on WL8.1 + solaris 9 env + SUN mid-end series server.
    JVM was configured to use 3G RAM and there are still abundant RAM on the HW server.
    I tried out a use case, it took long time to get response (~ 2 minutes). But the
    CPU utilization has been always lower 20%. I have tried out the same test case
    on a wintel server with 500 RAM allocated to JVM, the response time is much quicker
    (less than 30 sec). I did the same on solaris 8 with 3G RAM and had used alternate
    threads library mode (changing LD_LIBRARY_PATH to include /usr/lib/lwp) which
    is the default mode adopted by solaris 9. The same use case responded much quicker
    and comparable to abovementioned test on wintel. Can anybody advice on how to
    tune WL 8.1 on solaris 9 so as to make it perform best ? Is there any special
    trick ?
    thank u very much for any advice in advance
    dso

    "Arjan Kramer" <[email protected]> wrote:
    >
    Hi dso,
    I'm running the same two configs and run into the same performance issues
    as you do. Please let me know if you any response on this!
    Regards,
    Arjan Kramer
    "dso" <[email protected]> wrote:
    Hi All
    I have setup my app to run on WL8.1 + solaris 9 env. JVM was configured
    to use
    3G RAM and there are still abundant RAM on the HW server. I tried out
    a use case,
    it took long time to get response (~ 2 minutes). But the CPU utilization
    has been
    always lower 20%. I have tried out the same test case on a wintel server
    with
    500 RAM allocated to JVM, the response time is much quicker (less than
    30 sec).
    I did the same on solaris 8 with 3G RAM and had used alternate threads
    library
    mode (changing LD_LIBRARY_PATH to include /usr/lib/lwp) which is the
    default mode
    adopted by solaris 9. The same use case responded much quicker and comparable
    to abovementioned test on wintel. Can anybody advice on how to tuneWL
    8.1 on
    solaris 9 so as to make it perform best ? Is there any special trick
    thank u very much for any advice in advance
    dso
    There could be many factors that add to performance degradation, database, OS,
    Network, app config etc, so without knowing too much its difficult to tell.
    Can you please supply the startup JAVA options used to set the heap etc. Having
    larger heao sizes is not always the best approach of building HA applications...the
    bigger they are, the bigger they fall. I'd suggest using many but smaller instances.
    Provide the heap info from NT also.
    BTW, when weblogic starts, can you tell me how much memory is being used in the
    console...ie the footprint of weblogic + your application.
    Many Thanks

  • Slow performance of Java program with Oracle db on Solaris

    Hi all,
    I'm developing a Java program to read a large no. of records (arnd 40,000) from a file and populate into an Oracle database on a Solaris system. I'm using a thin JDBC driver. The problem is that the program runs very slow on Solaris.
    When I run the Java program on a Windows machine (and connect to the Solaris machine) the program runs quickly. However when I run the program on the Solaris machine itself, it runs around 20 times slower. I need the program to run faster in the Solaris environment. Can anyone help?
    The SPARC system used is SunOS 5.8, 4GB memory, 2*750MHz processors
    Thanks a lot
    ers

    The set of RDBMS DVD's can be downloaded from SAP Marketplace. Oracle 9.2 Installation zip file which contains Disk1 Disk2 and Disk3.
    Which Version of Solaris are you running?
    Is it 64 or 32 Bit?
    Regards,
    Damien

  • Bind 9 DNS Server chroot cannot work on Solaris 10 u6 and u7

    My Old verion "Solaris 10 x86 Generic_Patch_118844-30" can be run "Bind 9 DNS Server" in chroot mode.
    And this is no any problem.
    I have been try to use "Bind 9 DNS Server" in Solairs 10 x86 u6 or u7.
    The result is not any problem.
    But when I turn it run in the chroot mode. the "Bind 9 DNS Server" cannot run.
    I have been manuelly run the named:-
    /usr/sbin/named -c /etc/named.conf -t /chroot/dns -u named -f -g
    The respond is :-
    13-May-2009 02:17:46.623 starting BIND 9.3.6-P1 -c /etc/named.conf -t /chroot/dns -u named -f -g
    13-May-2009 02:17:46.624 found 1 CPU, using 1 worker thread
    13-May-2009 02:17:46.627 socket.c:3259: unexpected error:
    13-May-2009 02:17:46.627 open(/dev/poll) failed: No such file or directory
    13-May-2009 02:17:46.628 ./main.c:495: unexpected error:
    13-May-2009 02:17:46.628 isc_socketmgr_create() failed: file not found
    13-May-2009 02:17:46.629 create_managers() failed: unexpected error
    13-May-2009 02:17:46.629 exiting (due to early fatal error)
    Look like the bind 9 runing in the chroot mode after that cannot find /dev/poll
    Even I use Bind 9 version 9.6.0, the result is same.
    So, I don't sure the problem are the Bind 9 or Solaris 10 u6/u7
    I try to continous install New verion Bind 9 in my old version Solaris 10.
    THE Result is NO ANY PROBLEM in old version Solaris 10.
    And I already bypass the SMF problem.
    Anyone can tell me what the problem in solaris 10 u6/u7?

    Looks like something reported similar bug:
    [BIND fails to start|http://bugs.opensolaris.org/view_bug.do%3Bjsessionid=376e1152f0ddc75829ed1725542e?bug_id=6799867]
    but I am somewhat puzzled why there is no follow up on the bug fixing.
    Ok, I found the source (may be?):
    From named:
    http://src.opensolaris.org/source/xref/sfw/usr/src/cmd/bind/bind-9.3.6-P1/bin/named/main.c
        462 static isc_result_t
        463 create_managers(void) {
        464      isc_result_t result;
        465      unsigned int socks;
        466
        467 #ifdef ISC_PLATFORM_USETHREADS
        468      if (ns_g_cpus == 0)
        469           ns_g_cpus = ns_g_cpus_detected;
        470      isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_SERVER,
        471                 ISC_LOG_INFO, "found %u CPU%s, using %u worker thread%s",
        472                 ns_g_cpus_detected, ns_g_cpus_detected == 1 ? "" : "s",
        473                 ns_g_cpus, ns_g_cpus == 1 ? "" : "s");
        474 #else
        475      ns_g_cpus = 1;
        476 #endif
        477      result = isc_taskmgr_create(ns_g_mctx, ns_g_cpus, 0, &ns_g_taskmgr);
        478      if (result != ISC_R_SUCCESS) {
        479           UNEXPECTED_ERROR(__FILE__, __LINE__,
        480                      "isc_taskmgr_create() failed: %s",
        481                      isc_result_totext(result));
        482           return (ISC_R_UNEXPECTED);
        483      }
        484
        485      result = isc_timermgr_create(ns_g_mctx, &ns_g_timermgr);
        486      if (result != ISC_R_SUCCESS) {
        487           UNEXPECTED_ERROR(__FILE__, __LINE__,
        488                      "isc_timermgr_create() failed: %s",
        489                      isc_result_totext(result));
        490           return (ISC_R_UNEXPECTED);
        491      }
        492
        493      result = isc_socketmgr_create2(ns_g_mctx, &ns_g_socketmgr, maxsocks);===========================> here. (notice the error message and the actual function called are not the same).
        494      if (result != ISC_R_SUCCESS) {
        495           UNEXPECTED_ERROR(__FILE__, __LINE__,
        496                      "isc_socketmgr_create() failed: %s",
        497                      isc_result_totext(result));
        498           return (ISC_R_UNEXPECTED);
        499      }
        500      result = isc_socketmgr_getmaxsockets(ns_g_socketmgr, &socks);
        501      if (result == ISC_R_SUCCESS) {
        502           isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
        503                      NS_LOGMODULE_SERVER,
        504                      ISC_LOG_INFO, "using up to %u sockets", socks);
        505      }
        506
        507      result = isc_entropy_create(ns_g_mctx, &ns_g_entropy);
        508      if (result != ISC_R_SUCCESS) {
        509           UNEXPECTED_ERROR(__FILE__, __LINE__,
        510                      "isc_entropy_create() failed: %s",
        511                      isc_result_totext(result));
        512           return (ISC_R_UNEXPECTED);
        513      }
        514
        515      result = isc_hash_create(ns_g_mctx, ns_g_entropy, DNS_NAME_MAXWIRE);
        516      if (result != ISC_R_SUCCESS) {
        517           UNEXPECTED_ERROR(__FILE__, __LINE__,
        518                      "isc_hash_create() failed: %s",
        519                      isc_result_totext(result));
        520           return (ISC_R_UNEXPECTED);
        521      }
        522
        523      return (ISC_R_SUCCESS);
        524 }And in isc_socketmgr_create2():
       3384 isc_result_t
       3385 isc_socketmgr_create2(isc_mem_t *mctx, isc_socketmgr_t **managerp,
       3386                 unsigned int maxsocks)
       3387 {
    <SNIP>
       3488
       3489      /*
       3490       * Set up initial state for the select loop
       3491       */
       3492      result = setup_watcher(mctx, manager);===============================>will call open() on /dev/poll.
       3493      if (result != ISC_R_SUCCESS)
       3494           goto cleanup;
       3495      memset(manager->fdstate, 0, manager->maxsocks * sizeof(int));
    Other the above, I cannot really understand or help further. But I know it should fail in somewhere in setup_watcher() in socket.c.

  • SqlDeveloper Query = Fast, PL/SQL = Slow

    I've got a nagging problem that is driving me crazy. Database is 11.1.0.7 and SQLDeveloper is 1.5.1 with the same behavior in 3.0.03.
    Often I will develop a complex query in SQLDeveloper and get it tuned to a point where performance is great. However when I take that query and put it in a PL/SQL procedure with dynamic SQL the performance takes a nose dive. This happens when taking a query to an Apex report as well. I use bind variables in my queries in SQLDeveloper as well as Apex/PLSQL.
    If I run an explain plan in SQLDeveloper it is often identical to the plan for the query in the pl/sql environment (seen through tkprof), yet the sqldeveloper query window is always faster.
    The difference in speed is remarkable, my current "problem" query is runs in 71 seconds inside a PL/SQL stored procedure using dynamic sql with bind variables. If I print that query out and copy paste the query in to a SQLDeveloper sql window (worksheet?), the exact same query prompts me for the bind variable values and then runs in 0.07 seconds. Just to make sure the rows aren't caching, if I run the stored procedure version again it still takes 71+ seconds.
    If I hard code values in the PL/SQL query instead of using bind variables, the stored procedure runs as fast as SQLDeveloper, 0.07 seconds.
    I originally posted a similar problem over in the Apex forum and there we suspected the issue might be related to the 11g optimizer using bind variable peeking. SLOW report performance with bind variable
    Ultimately, the goal is to have predictable results when taking a query from SQLDeveloper to PL/SQL.
    Are there any SQLDeveloper developers out there that can confirm that "bind variable" syntax in SQL Developer is not using bind variables, but is instead rewriting the query with hard coded values in query strings?

    mcallister wrote:
    I've got a nagging problem that is driving me crazy. Database is 11.1.0.7 and SQLDeveloper is 1.5.1 with the same behavior in 3.0.03.
    when I take that query and put it in a PL/SQL procedure with dynamic SQL the performance takes a nose diveThat's one of the reasons not to use dynamic SQL - tuning the resulting queries is very difficult.
    Is the dynamic SQL necessary? If you are only using bind variables it probably is not necessary. If you are swapping WHERE clause predicates in and out through program logic then predicting performance will be very hard (or using different column or table names too)
    When I must use dynamic SQL I find a useful technique is to create a debugging table with a CLOB into which I can insert the generated SQL code for later reference. That code can be used for both debugging (looking for syntax errors) and tuning. I also find it very, very useful to write the dynamic SQL with proper formatting and linefeeds so it is immediately readable on inspection
    Are there any SQLDeveloper developers out there that can confirm that "bind variable" syntax in SQL Developer is not using bind variables, but is instead rewriting the query with hard coded values in query strings?You can see if query rewrites are taking place by using the NO_QUERY_TRANSFORMATION hint and seeing if the execution plan changes while tuning. To a lesser degree you can examine execution plans from V$SQL_PLAN to look for signs of changes like predicates you didn't code but this is also very hard

  • Shared variable vs. data binding

    Hi,
    I try to write a program which communicates motor drives through ethernet and I use OPC server and shared variables created using PLC. I created front panel indicators in a while loop with 50 ms cycle to read motor encoder position, status etc. When I try to do this with wiring shared variable to indicator and with changing the data binding property of the indicator browsing the same variable from the project library, data binding seems to respond slower than wiring the shared variable to indicator directly. Can anyone explain why?

    Hi mhn05, 
    I'm not exactly sure why it would be operating slower.  Do you have code that you can upload that benchmarks or tests the speed of these, side by side? 
    Thanks, 
    Dave T.
    National Instruments
    FlexRIO & R-Series Product Support Engineer

  • Low CPU utilization on Solaris

    Hi all.
    We've recently been performance tuning our java application running
    inside of an Application Server with Java 1.3.1 Hotspot -server. We've
    begun to notice some odd trends and were curious if anyone else out
    there has seen similiar things.
    Performance numbers show that our server runs twice
    as fast on Intel with Win2K than on an Ultra60 with Solaris 2.8.
    Here's the hardware information:
    Intel -> 2 processors (32bit) at 867 MHz and 2 Gig RAM
    Solaris -> 2 processors (64bit) at 450 MHz and 2 Gig RAM.
    Throughput for most use cases in a low number of threads is twice as
    fast on Intel. The only exception is some of our use-cases that are
    heavily dependent on a stored procedure which runs twice as fast on
    Solaris. The database (oracle 8i) and the app server run on the same
    machine in these tests.
    There should minor (or no) network traffic. GC does not seem to be an
    issue. We set the max heap at 1024 MG. We tried the various solaris
    threading models as recommended, but they have accomplished little.
    It is possible our Solaris machine is not configured properly in some
    way.
    My question (after all that ...) is whether this seems normal to
    anyone? Should throughput be higher since the processors are faster on
    the wIntel box? Does the fact that the solaris processors are 64bit
    have any benefit?
    We have also run the HeapTest recommended on this site on both
    machines. We found that the memory test performs twice as fast on
    solaris, but the CPU test performs 4 times as slow on solaris. The
    "joint" test performs twice as slow on solaris. Does this imply bad
    things about our solaris configuration? Or is this a normal result?
    Another big difference is between Solaris and Win2K in these runs is
    that CPU Utilization is low on solaris (20-30%) while its much higher
    on Win2K (60-70%)
    [both machines are 2 processor and the tests are "primarily" single
    threaded at
    this stage]. I would except the solaris CPU utilization to be around
    50% as well. Any ideas why it isn't?

    Hi,
    I recently went down this path and wound up coming to the realization that the
    cpu's are almost neck and neck per cycle when running my Java app. Let me qualify
    this a little more (400mhz Sparc II cpu vs 500mhz Intel cpu) under similar load
    running the same test gave me similar results. It wasn't as huge difference in
    performance as I was expecting.
    My theory is given the scalability of the SPARC architecture, more chips==more
    performance with less hardware, whereas the Wintel boxes are cheaper, but in order
    to get scaling, the underlying hardware comes into question. (how many wintel
    boxes to cluster, co-locate, manage, etc…)
    From what little I've found out when running tests against our Solaris 8 (E-250's)
    400mhz UltraSparc 2's is that it appears that the CPU performance in a lightly
    threaded environment is almost 1 cycle / 1 cycle (SPARC to Intel). I don't think
    the 64 bit SPARC architecture will buy you anything for java 1.3.1, but if your
    application has some huge memory requirements, then using 1.4.0(when BEA supports
    it) should be beneficial (check out http://java.sun.com/j2se/1.4/performance.guide.html).
    If your application is running only a few threads, tying the threads to the LWP
    kernel processes probably won't gain you much. I noticed that it decreased performance
    for a test with only a few threads.
    I can't give you a good reason as to why your Solaris CPU utilization is so low,
    you may want to try getting a copy of Jprobe and profiling Weblogic and your application
    to see where your bottlenecks are. I was able to do this with our product, and
    found some nasty little performance bugs, but even with that our CPU utilization
    was around 98% on a single and 50% on a dual.
    Also, take a look at iostat / vmstat and see if your system is bottlenecking doing
    io operations. I kept a background process of vmstat to a log and then looked
    at it after my test and saw that my cpu was constantly pegged out (doing a lot
    of context switching), but that it wasn't doing a whole lot of page faults
    (had enough memory).
    If you're doing a lot of serialization, that could explain slow performance as
    well.
    I did follow a suggestion on this board of running my test several times with
    the optimizer (-server) and it boosted performance on each iteration until a plateau
    on or about the 3rd test.
    If you're running Oracle or another RDBMS on your Solaris machine you should see
    a pretty decent performance benchmark against NT as these types of applications
    are more geared toward the SPARC architecture. From what I've seen running Oracle
    on Solaris is pretty darn fast when compared to Intel.
    I know that I tried a lot of different tweaks on my Solaris configuration (tcp
    buffer size, etc/system parameters for file descriptors, etc.) I even got to the
    point where I wanted
    to see how WebLogic was handling the Nagle algorithm as far as it's POSIX muxer
    was concerned and ran a little test to see how they were setting the sockets (setTcpNoDelay(Boolean)
    on java.net.Socket). They're disabling the Nagle algorithm so that wasn't an
    issue sigh. My best advice would be to profile your application and see where
    the bottlenecks are, you might be able to increase performance, but I'm not too
    sure. I also checked out www.spec.org and saw some of their benchmarks that
    coincide with our findings.
    Best of luck to you and I hope this helps :)
    Andy
    [email protected] (feanor73) wrote:
    Hi all.
    We've recently been performance tuning our java application running
    inside of an Application Server with Java 1.3.1 Hotspot -server. We've
    begun to notice some odd trends and were curious if anyone else out
    there has seen similiar things.
    Performance numbers show that our server runs twice
    as fast on Intel with Win2K than on an Ultra60 with Solaris 2.8.
    Here's the hardware information:
    Intel -> 2 processors (32bit) at 867 MHz and 2 Gig RAM
    Solaris -> 2 processors (64bit) at 450 MHz and 2 Gig RAM.
    Throughput for most use cases in a low number of threads is twice as
    fast on Intel. The only exception is some of our use-cases that are
    heavily dependent on a stored procedure which runs twice as fast on
    Solaris. The database (oracle 8i) and the app server run on the same
    machine in these tests.
    There should minor (or no) network traffic. GC does not seem to be an
    issue. We set the max heap at 1024 MG. We tried the various solaris
    threading models as recommended, but they have accomplished little.
    It is possible our Solaris machine is not configured properly in some
    way.
    My question (after all that ...) is whether this seems normal to
    anyone? Should throughput be higher since the processors are faster on
    the wIntel box? Does the fact that the solaris processors are 64bit
    have any benefit?
    We have also run the HeapTest recommended on this site on both
    machines. We found that the memory test performs twice as fast on
    solaris, but the CPU test performs 4 times as slow on solaris. The
    "joint" test performs twice as slow on solaris. Does this imply bad
    things about our solaris configuration? Or is this a normal result?
    Another big difference is between Solaris and Win2K in these runs is
    that CPU Utilization is low on solaris (20-30%) while its much higher
    on Win2K (60-70%)
    [both machines are 2 processor and the tests are "primarily" single
    threaded at
    this stage]. I would except the solaris CPU utilization to be around
    50% as well. Any ideas why it isn't?

  • Cannot find any information on this Sun Server I just got

    Hi, Just got this Sun Server and I cant find in the Sun knowledgebase or support section.
    The box is approx 50cm x 50 cm and 6cm high.
    On the back it has 2 Network ports, Lom Serial A & B ports and a pci card with 4 Lan ports.
    Font face plate states Webshield eppliance.
    Label on back states: Compliance model number: FJ1A and Part Number 263-0819-01.
    I have tried hookin up to the serial port with a RJ45 to db9 cable but nothing happens. Perhaps I have the wrong terminal settings entered.
    Maybe this unit is known by another name. I would really like to find all the relevant user guides and how-to documents though.
    Any help appreciated.
    Henyak

    A brief Google search suggests that Network Associates may have acquired a bunch of systems and remanufactured and re-labelled them as their own product. That means it no longer would be a Sun system, but is a Network Associates' product.
    If indeed it is a 1U formfactor as you described, then the closest comparable Sun system might be the Netra T1 105 (360MHz or possibly 440MHz cpu).
    Go to Docs.Sun.Com and get the T1 105's documentation and see if you can make it work.
    I hope you didn't pay very much - in fact almost nothing.
    It's old and slow.
    Solaris 8 would be about the newest OS that wouldn't burden it with overhead.

  • Running only LDAPS on 636?

    Hello all,
    i managed to configure DS5.2 to run TLS/SSL on 636 ... with certifcates and all that... it works :D
    but my LDAP server is stil up and running on the normal port 389
    how can i configure it to stop listening on this port and listen only on that secure connection on port 636?
    maybe one way is to set the nsslapd-localhost to localhost and then it will listen only localy, but i dont want that... i just want to shut down the 389 port,
    is it posible?
    how can i do that?
    thanks

    i found some info on this � even if its old im 90% sure nothing has change regarding the native ldap client
    Even if Directory Server is SSL configured, anyway non-secure port also MUST be open, moreover it MUST be default (389), otherwise ldap_cachemgr(1M) during its startup will be just keep querying 389 port (which is closed) for some time and eventually ends up with �maintenance� mode, of course �
    well after reading this i wasn�t to eager to try it out, so i kept digging and found out in [Sun Java System Directory Server Enterprise Edition 6.2 Administration Guide |http://docs.sun.com/app/docs/doc/819-0995/6n3cq3aqu?a=view]
    To Disable the LDAP Clear Port you can use DSCC to perform this task.
    1. Disable the LDAP clear port.
    To disable the non secure point, you must bind to the LDAP secure port. This example shows a bind to the default LDAP secure port, 636, on the host server host1.
    $ dsconf set-server-prop -h host1 -P 636 ldap-port:disabled
    2. Restart the server for the change to take effect.
    $ dsadm restart /local/ds
    You can now no longer bind on the non secure port 389.
    well � as i believe in the power of Administration guides, i began to test the steps described above
    i run the command
    $dsconf set-server-prop -h test.machine.com -P 636 ldap-port:disabled
    Enter �cn=Directory Manager� password:
    Directory Server must be restarted for changes to take effect.
    i was thinking � oh goodie it works :D
    but then � when trying to restart
    @:/root !ksh dsadm restart <DS instance dir>
    Directory Server instance �<DS instance dir>� stopped
    [09/Jul/2008:10:02:04 +0300] - INFORMATION - Startup - conn=-1 op=-1 msgId=-1 - Non-Secure Port Disabled, server only contactable via secure port
    Failed to start Directory Server instance �<DS instance dir>�
    ns-slapd wrote the following lines in the error log (<DS instance dir>/logs/errors):
    ##[09/Jul/2008:10:02:04 +0300] - INFORMATION - Startup - conn=-1 op=-1 msgId=-1 - Non-Secure Port Disabled, server only contactable via secure port
    ##[09/Jul/2008:10:02:04 +0300] - INFORMATION - Startup - conn=-1 op=-1 msgId=-1 - Non-Secure Port Disabled, server only contactable via secure port
    ##[09/Jul/2008:10:02:05 +0300] - Sun-Java(tm)-System-Directory/6.3 B2008.0311.0058 (64-bit) starting up
    ##[09/Jul/2008:10:02:05 +0300] - ERROR<4612> - Startup - conn=-1 op=-1 msgId=-1 - Unable to start slapd because it is already running as process 8455
    ##[09/Jul/2008:10:02:05 +0300] - ERROR<12302> - Bootstrap config - conn=-1 op=-1 msgId=-1 - System error Shutting down due to possible conflicts with other slapd processes
    that was not good � hmmm
    @:/root !ksh svcs -a|grep ldap/server
    show me that the ldap/server si still running � hmmm
    @:/root !ksh svcadm disable -s ldap/server
    @:/root !ksh svcadm enable -s ldap/server
    @:/root !ksh netstat -an|grep 389
    shows nothing listening on 389 � yey it works
    @:/root !ksh cat <DS instance dir>/config/dse.ldif |grep �port: �
    nsslapd-secureport: 636
    nsslapd-port: 0
    so basically its the same method � set the nsslapd-port to 0 in dse.ldif file
    now because i didnt knew any other way to make the ldap/client to re-read the conf file and connect only on port 636, even if i didnt do any cahnges to the configuration file of the client �i restarted the client
    @:/root !ksh svcadm disable -s ldap/client
    @:/root !ksh svcadm enable -s ldap/client
    svcadm: Instance �svc:/network/ldap/client:default� is in maintenance state.
    so it seams that indeed the ldap/client doesnt know to connect to 636, only to 389� nice :(
    the new question now is:
    did Sun resolved the ldap client problem? which is known from 2006? and is the native ldap client able to bind to 636?
    i used also the command
    pkill -HUP ldap_cachemgr
    which generated some errors in the logs od the client
    Wed Jul  9 11:28:21.4829        Error: Unable to refresh profile:tls_profile:LDAP ERROR (81): Error occurred during receiving results. This may be due to a st
    alled connection.
    Wed Jul  9 11:28:21.4829        Error: Unable to update from profile
    Wed Jul  9 11:45:11.2709        Error: Unable to refresh profile:tls_profile:Session error no available conn.
    Wed Jul  9 11:45:11.2709        Error: Unable to update from profileanother thought, if i disable the 389 port then all the aci's in the dse.ldif file which refer to ldap:///... wont work... or am i mistaking here?
    maybe that's why the proxy agent cant access the tls_profile and get the needed info to start the ldap_cachemgr
    some inputs would be useful before i begin to do a sed and replace all my aci's which contain ldap:/// with ldaps:///
    i have also found that there is a project for [OpenSolaris named Duckwater|http://opensolaris.org/os/project/duckwater/duckwater_phase0/]
    Duckwater Phase 0 � May 2008
    We are currently planning to start code-review process for the first phase of Duckwater project which will, among other things, deliver the LDAP naming tools standalone functionalityalso in some documentation material [Native LDAP standalone tools (Duckwater)|http://opensolaris.org/os/community/arc/caselog/2008/256/onepager/] i found that
    The timer is set to expire on April 18, 2008.  The requested release binding is 'patch'.so when will Solaris 10 sparc have a patch that will solve the ldap_cachemgr bug?
    hmmm
    also i didnt find any workaround... yet

Maybe you are looking for

  • Problems syncing from contacts to address book

    I have an iMac which now runs OSX 10.6.8 and an iPhone 3GS that runs the latest iOS 5. Long story short, I downgraded from OSX Lion back to OSX 10.6.8 a few months ago.  Got quite a few problems doing so...  ended up creating a brand new user and tra

  • Sharing apps between users on 1 computer

    We just gave our old MBAir to a family member. We bought some basic software for her as well. After the fact it was determined that one of her daughters would benefit by its use as well and we had her create a separate user account. Despite having wo

  • "Mac OS X cannot be installed on this computer." New Hard Drive.

    I have just bought a new Seagate Hard Drive and I want to install Mac OS X 10.5 on it. My MacBook is from the days of Tiger, but I have since upgraded to Leopard using the upgrade discs that Apple gave out. My next door neighbor has a brand new MacBo

  • Pictures in iPhoto disappeard

    Hello, Yesterday I opened my iPhoto (8.1.2) and it said something like "your photo seem to be missing, restart the computer and if this occurs again press command alt while opening iPhoto and try to recover them". Of course no photo appeard after hav

  • Launch ASCP plan run very long time

    Hi, I launched constrained ASCP plan and it took very long time. I launch ASCP plan in friday and it still not finished yet till monday, Memory Based Shapshot & Snapshot Delete Worker are still running, Loader Worker With Direct Load Option is still