Slow Socket Creation

Hi all,
I'm trying to connect to my smtp server with a socket but it takes several minutes to create the socket.
Here is the code to reproduce my problem :
public static void main(String[] args) {
          long start,duration;
          ProxySelector.setDefault(null);
          start = System.currentTimeMillis();
          Socket socket = new Socket(Proxy.NO_PROXY);
          duration = System.currentTimeMillis() - start;
          System.out.println("new Socket en " + duration+ "ms");
        // l'adresse IP de la cible
        start = System.currentTimeMillis();
        InetAddress ipAddr;
          try {
               ipAddr = InetAddress.getByName(CMain.SMTP_SERVER);
        duration = System.currentTimeMillis();
          // Socket de la cible
        start = System.currentTimeMillis();
        InetSocketAddress endPoint = new InetSocketAddress(ipAddr, 25);
        duration = System.currentTimeMillis() - start;
        System.out.println("endPoint en " + duration+ "ms");
        // Socket locale
        if (!socket.isBound()) {
            start = System.currentTimeMillis();
            socket.bind(null);
            duration = System.currentTimeMillis() - start;
            System.out.println("Bind en "+ duration + "ms");
        System.out.println("Est-on connecté? " + socket.isConnected());
        // Création de la connexion
        start = System.currentTimeMillis();
        socket.connect(endPoint);
        duration = System.currentTimeMillis() - start;
        System.out.println("Connexion à " + CMain.SMTP_SERVER + ": 25 en "+ duration + "ms");
        // Properties of the current socket
        System.out.println("Socket: " + socket);
        socket.close();
          } catch (UnknownHostException e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
          } catch (IOException e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
The output :
new Socket en 189001ms
endPoint en 0ms
Bind en 0ms
Est-on connecté? false
Connexion à 127.0.0.1 : 25 en 0ms
Socket: Socket[addr=localhost/127.0.0.1,port=25,localport=35106]Java version :
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode)My /etc/hosts file :
127.0.0.1       localhost
XX.XXX.XXX.XXX    XXXXX
# The following lines are desirable for IPv6 capable hosts
XXXXXX ::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhostsMy OS is debian 4.0.
When I telnet my smtp server, the connection is immediate.
Thanks you for any help

No idea of what file I should configure on my server?
I must have made something wrong but I don't know what?
Thanks for any advice

Similar Messages

  • Slow socket creation at runtime

    Im writing a program to send a form via http secure socket to a web sever. My code works, but the problem is, once it executes, it take about 40 seconds for the 1st line of code to complete. Is there anything I can do to speed this up?
    Im running j2sdk1.4.0-beta3 (windows98 on PIII 450, 300megs ram, 56k)
    public static boolean login() {
    try
    SSLSocketFactory sslsocketfactory = (SSLSocketFactory)SSLSocketFactory.getDefault();
    System.out.println("1");
    SSLSocket sslsocket = (SSLSocket)sslsocketfactory.createSocket("blah.blah.com", 443);
    System.out.println("sockets created");

    Problem solved.. if anyone cares, this was my final code
    java.security.SecureRandom x = new java.security.SecureRandom();
    x.setSeed(1);
    SSLContext sc = SSLContext.getInstance("SSL");
    sc.init(null,null, x);
    SSLSocketFactory sf1 = sc.getSocketFactory();
    SSLSocket sslsocket = (SSLSocket)sf1.createSocket("blah.blah.com", 443);
    i had a unique situation, i was forced to connect to a secure socket to exchange non secretive info, so security was the least of my worries and speed was most important. Using this, it creates a socket as fast as regular non SSL socket, but it basically lets u connect to a SSL socket with no/very little security. It cut a good 40 sec off the socket creation time.
    thanks for yalls help

  • Socket creation too slow versus URLConnection

    I'm trying to write a transparent proxy like polipo.
    Polipo is written in C and I want to have the same result in java.
    A simple program that can filter/monitor all connections created and closed by the browser.
    To do so, I've chosen to work with sockets, because that's the only way i know to read and write raw data to and from the browser in a completely transparent way.
    In this moment my code reads and writes every couple of request/response but I've noticed profiling it that the time needed to create the socket is a bottleneck.
    Using URLConnection to create the same connection I need much less time than sockets.
    When socket creation implies 50ms URLConnection implies only 1ms.
    I haven't still understand why.
    I don't want to reinvent the wheel and i've read some old post where this problem was known, but I haven't found the solution.
    Can anyone help me to understand if the approach is incorrect?

    Creating a socket with a host and port parameter implies actually creating the TCP connection.
    Creating a URLConnection just implies creating an object in memory. The TCP connection isn't created until you call getInputStream(), getErrorStream(), or getResponseCode().
    So your measurements are worthless.
    If creating TCP connections is taking excessive time, look to your network and your DNS system.

  • Error socket creation

    Hi!!
    I Set Up ODI with the express edition database. I follow all the steps, but whe i want to open the designer I cant enter to the repository show this error.... java.sql.SQLException:socket creation error.
    I think is a java problem, but I download the right versio,
    thxs =)

    do you have two different oracle data base version running the same version and also can you please check if you can connect successfuly through any external SQL editory and also make sure the connecting string is right.

  • Slow projector creation

    I am creating a projector for a large application (85MB). The
    creation of the projector is far too slow. This application would
    usually take 1hr(max). It is now taking 6-8hrs with my usual
    settings and very little changed from the previous version. Any
    help?
    Kind regards,
    Duncan

    Xposure Interactive wrote:
    > I am creating a projector for a large application
    (85MB). The creation of the
    > projector is far too slow. This application would
    usually take 1hr(max). It is
    > now taking 6-8hrs with my usual settings and very little
    changed from the
    > previous version. Any help?
    > Kind regards,
    > Duncan
    may be too later for this project but, for the next one you
    can split it
    into several movies. easier to develop/debug/maintain
    to solve this one, you can use a stub projector that calls
    your big
    movie so you'll only need to protect it when finished

  • Slow user creation when an organization has approvers

    Hello everybody,
    Just before a month ago, I started having performance problems when I had to deal with user creation, edit and delete. Specially the user creation was extremely slow ( 7 minutes !!! ).
    This "little" latency occurs only when I create users in organizations that have approvers. if there are no approvers then there's no latency.
    By examining the machine perfomance at the O/S level the machine was idle.
    I running idm 7.1 installed in solaris 10 with mysql 4 backened.
    Any oppinion why this latency occur ?

    Login to portal...
    Navigate to User Admin -> Identity Management ...
    search for your user...and select Account information...
    there you will get "Date of Account Creation:"
    Alternatively login to :
    http://<host>:<port>/webdynpro/dispatcher/sap.com/tcsecumewdumeadmin/UmeAdminApp
    If somebody can let us know...how to find "who created the user"...this will be informative for me as well......

  • Slow iView Creation

    When creating a new iView in the Content Administration -> Portal Content tab, going from step1 (source type) to step2 (page creation) is very slow.  The time to load the step2 page can easily run 30 minutes or more.  Normally this occurs on the first time creating an iView after entering the Portal Content tab.
    Any ideas on how to speed this up?

    Hello,
    did you find any solution to this problem? Since a few days, we experience the same. I think it has something to do with LDAP, since the only change that happened in the last days is that we "portal-enabled" around 2500 users in our active directory.
    I would really appreciate any help with this issue... Thanks!
    Regards,
    Markus

  • Slow socket connection

    I have a client / server application where client and server run on different sparc/solaris machines. Client app is a Java2 application and the server is a C++ application. This works normally when both run on machines that have solaris patches needed for Java2.
    When I run the server on a machine that does not have the patches applied and the client on a machine with Java2 installed(with all necessary solaris patches), the socket communication is about 100 times slower. Is this a known problem ? Is there a solution without upgrading the server machine's OS or applying patches as it is normally not in our control. If applying a patch is the only solution which specific patch fixes this. I would greatly appreciate any assistance.

    Sounds like this: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5092063
    If it is that, the reason is that 1.5 does a reverse name lookup for the IP address. If your name server is broken, slow, or misconfigured, you get long wait times. To test if this is the problem, add the IP address to your name server, or /etc/hosts (Unix) or c:+\..somewhere..\hosts.txt (Windows.)

  • Slow table creation after upgrade from 10.2.0.3 to 11.2.0.1 using DBUA

    I've recently completed a database upgrade from 10.2.0.3 to 11.2.0.1 using the DBUA.
    I've since encountered a slowdown when running a script which drops and recreates a series of ~250 tables. The script normally runs in around 19 seconds. After the upgrade, the script requires ~2 minutes to run.
    By chance has anyone encountered something similar?
    The problem may be related to the behavior of an "after CREATE on schema" trigger which grants select privileges to a role through the use of a dbms_job call; between 10g and the database that was upgraded from 10G to 11g. Currently researching this angle.
    I will be using the following table creation DDL for this abbreviated test case:
    create table ALLIANCE  (
       ALLIANCEID           NUMBER(10)                      not null,
       NAME                 VARCHAR2(40)                    not null,
       CREATION_DATE        DATE,
       constraint PK_ALLIANCE primary key (ALLIANCEID)
               using index
           tablespace LIVE_INDEX
    tablespace LIVE_DATA;When calling the above DDL, an "after CREATE on schema" trigger is fired which schedules a job to immediately run to grant select privilege to a role for the table which was just created:
    create or replace
    trigger select_grant
    after CREATE on schema
    declare
        l_str varchar2(255);
        l_job number;
    begin
        if ( ora_dict_obj_type = 'TABLE' ) then
            l_str := 'execute immediate "grant select on ' ||
                                         ora_dict_obj_name ||
                                        ' to select_role";';
            dbms_job.submit( l_job, replace(l_str,'"','''') );
        end if;
    end;
    {code}
    Below I've included data on two separate test runs.  The first is on the upgraded database and includes optimizer parameters and an abbreviated TKPROF.  I've also, included the offending sys generate SQL which is not issued when the same test is run on a 10g environment that has been set up with a similar test case.  The 10g test run's TKPROF is also included below.
    The version of the database is 11.2.0.1.
    These are the parameters relevant to the optimizer for the test run on the upgraded 11g SID:
    {code}
    SQL> show parameter optimizer
    NAME                                 TYPE        VALUE
    optimizer_capture_sql_plan_baselines boolean     FALSE
    optimizer_dynamic_sampling           integer     2
    optimizer_features_enable            string      11.2.0.1
    optimizer_index_caching              integer     0
    optimizer_index_cost_adj             integer     100
    optimizer_mode                       string      ALL_ROWS
    optimizer_secure_view_merging        boolean     TRUE
    optimizer_use_invisible_indexes      boolean     FALSE
    optimizer_use_pending_statistics     boolean     FALSE
    optimizer_use_sql_plan_baselines     boolean     TRUE
    SQL> show parameter db_file_multi
    NAME                                 TYPE        VALUE
    db_file_multiblock_read_count        integer     8
    SQL> show parameter db_block_size
    NAME                                 TYPE        VALUE
    db_block_size                        integer     8192
    SQL> show parameter cursor_sharing
    NAME                                 TYPE        VALUE
    cursor_sharing                       string      EXACT
    SQL> column sname format a20
    SQL> column pname format a20
    SQL> column pval2 format a20
    SQL> select sname, pname, pval1, pval2 from sys.aux_stats$;
    SNAME                PNAME                     PVAL1 PVAL2
    SYSSTATS_INFO        STATUS                          COMPLETED
    SYSSTATS_INFO        DSTART                          03-11-2010 16:33
    SYSSTATS_INFO        DSTOP                           03-11-2010 17:03
    SYSSTATS_INFO        FLAGS                         0
    SYSSTATS_MAIN        CPUSPEEDNW           713.978495
    SYSSTATS_MAIN        IOSEEKTIM                    10
    SYSSTATS_MAIN        IOTFRSPEED                 4096
    SYSSTATS_MAIN        SREADTIM               1565.746
    SYSSTATS_MAIN        MREADTIM
    SYSSTATS_MAIN        CPUSPEED                   2310
    SYSSTATS_MAIN        MBRC
    SYSSTATS_MAIN        MAXTHR
    SYSSTATS_MAIN        SLAVETHR
    13 rows selected.
    {code}
    Output from TKPROF on the 11g SID:
    {code}
    create table ALLIANCE  (
       ALLIANCEID           NUMBER(10)                      not null,
       NAME                 VARCHAR2(40)                    not null,
       CREATION_DATE        DATE,
       constraint PK_ALLIANCE primary key (ALLIANCEID)
               using index
           tablespace LIVE_INDEX
    tablespace LIVE_DATA
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          4           0
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.00       0.00          0          0          4           0
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 324
    {code}
    ... large section omitted ...
    Here is the performance hit portion of the TKPROF on the 11g SID:
    {code}
    SQL ID: fsbqktj5vw6n9
    Plan Hash: 1443566277
    select next_run_date, obj#, run_job, sch_job
    from
    (select decode(bitand(a.flags, 16384), 0, a.next_run_date,
      a.last_enabled_time) next_run_date,       a.obj# obj#,
      decode(bitand(a.flags, 16384), 0, 0, 1) run_job, a.sch_job  sch_job  from
      (select p.obj# obj#, p.flags flags, p.next_run_date next_run_date,
      p.job_status job_status, p.class_oid class_oid,      p.last_enabled_time
      last_enabled_time, p.instance_id instance_id,      1 sch_job   from
      sys.scheduler$_job p   where bitand(p.job_status, 3) = 1    and
      ((bitand(p.flags, 134217728 + 268435456) = 0) or
      (bitand(p.job_status, 1024) <> 0))    and bitand(p.flags, 4096) = 0    and
      p.instance_id is NULL    and (p.class_oid is null      or (p.class_oid is
      not null      and p.class_oid in (select b.obj# from sys.scheduler$_class b
                               where b.affinity is null)))   UNION ALL   select
      q.obj#, q.flags, q.next_run_date, q.job_status, q.class_oid,
      q.last_enabled_time, q.instance_id, 1   from sys.scheduler$_lightweight_job
      q   where bitand(q.job_status, 3) = 1    and ((bitand(q.flags, 134217728 +
      268435456) = 0) or         (bitand(q.job_status, 1024) <> 0))    and
      bitand(q.flags, 4096) = 0    and q.instance_id is NULL    and (q.class_oid
      is null      or (q.class_oid is not null      and q.class_oid in (select
      c.obj# from sys.scheduler$_class c                          where
      c.affinity is null)))   UNION ALL   select j.job, 0,
      from_tz(cast(j.next_date as timestamp),      to_char(systimestamp,'TZH:TZM')
      ), 1, NULL,      from_tz(cast(j.next_date as timestamp),
      to_char(systimestamp,'TZH:TZM')),     NULL, 0   from sys.job$ j   where
      (j.field1 is null or j.field1 = 0)    and j.this_date is null) a   order by
      1)   where rownum = 1
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.47       0.47          0       9384          0           1
    total        3      0.48       0.48          0       9384          0           1
    Misses in library cache during parse: 1
    Optimizer mode: CHOOSE
    Parsing user id: SYS   (recursive depth: 1)
    Rows     Row Source Operation
          1  COUNT STOPKEY (cr=9384 pr=0 pw=0 time=0 us)
          1   VIEW  (cr=9384 pr=0 pw=0 time=0 us cost=5344 size=6615380 card=194570)
          1    SORT ORDER BY STOPKEY (cr=9384 pr=0 pw=0 time=0 us cost=5344 size=11479630 card=194570)
    194790     VIEW  (cr=9384 pr=0 pw=0 time=537269 us cost=2563 size=11479630 card=194570)
    194790      UNION-ALL  (cr=9384 pr=0 pw=0 time=439235 us)
        231       FILTER  (cr=68 pr=0 pw=0 time=920 us)
        231        TABLE ACCESS FULL SCHEDULER$_JOB (cr=66 pr=0 pw=0 time=690 us cost=19 size=13157 card=223)
          1        TABLE ACCESS BY INDEX ROWID SCHEDULER$_CLASS (cr=2 pr=0 pw=0 time=0 us cost=1 size=40 card=1)
          1         INDEX UNIQUE SCAN SCHEDULER$_CLASS_PK (cr=1 pr=0 pw=0 time=0 us cost=0 size=0 card=1)(object id 5056)
          0       FILTER  (cr=3 pr=0 pw=0 time=0 us)
          0        TABLE ACCESS FULL SCHEDULER$_LIGHTWEIGHT_JOB (cr=3 pr=0 pw=0 time=0 us cost=2 size=95 card=1)
          0        TABLE ACCESS BY INDEX ROWID SCHEDULER$_CLASS (cr=0 pr=0 pw=0 time=0 us cost=1 size=40 card=1)
          0         INDEX UNIQUE SCAN SCHEDULER$_CLASS_PK (cr=0 pr=0 pw=0 time=0 us cost=0 size=0 card=1)(object id 5056)
    194559       TABLE ACCESS FULL JOB$ (cr=9313 pr=0 pw=0 time=167294 us cost=2542 size=2529254 card=194558)
    {code}
    and the totals at the end of the TKPROF on the 11g SID:
    {code}
    OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      2      0.00       0.00          0          0          4           0
    Fetch        0      0.00       0.00          0          0          0           0
    total        3      0.00       0.00          0          0          4           0
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse       70      0.00       0.00          0          0          0           0
    Execute     85      0.01       0.01          0         62        208          37
    Fetch       49      0.48       0.49          0       9490          0          35
    total      204      0.51       0.51          0       9552        208          72
    Misses in library cache during parse: 5
    Misses in library cache during execute: 3
       35  user  SQL statements in session.
       53  internal SQL statements in session.
       88  SQL statements in session.
    Trace file: 11gSID_ora_17721.trc
    Trace file compatibility: 11.1.0.7
    Sort options: default
           1  session in tracefile.
          35  user  SQL statements in trace file.
          53  internal SQL statements in trace file.
          88  SQL statements in trace file.
          51  unique SQL statements in trace file.
        1590  lines in trace file.
          18  elapsed seconds in trace file.
    {code}
    The version of the database is 10.2.0.3.0.
    These are the parameters relevant to the optimizer for the test run on the 10g SID:
    {code}
    SQL> show parameter optimizer
    NAME                                 TYPE        VALUE
    optimizer_dynamic_sampling           integer     2
    optimizer_features_enable            string      10.2.0.3
    optimizer_index_caching              integer     0
    optimizer_index_cost_adj             integer     100
    optimizer_mode                       string      ALL_ROWS
    optimizer_secure_view_merging        boolean     TRUE
    SQL> show parameter db_file_multi
    NAME                                 TYPE        VALUE
    db_file_multiblock_read_count        integer     8
    SQL> show parameter db_block_size
    NAME                                 TYPE        VALUE
    db_block_size                        integer     8192
    SQL> show parameter cursor_sharing
    NAME                                 TYPE        VALUE
    cursor_sharing                       string      EXACT
    SQL> column sname format a20
    SQL> column pname format a20
    SQL> column pval2 format a20
    SQL> select sname, pname, pval1, pval2 from sys.aux_stats$;
    SNAME                PNAME                     PVAL1 PVAL2
    SYSSTATS_INFO        STATUS                          COMPLETED
    SYSSTATS_INFO        DSTART                          09-24-2007 11:09
    SYSSTATS_INFO        DSTOP                           09-24-2007 11:09
    SYSSTATS_INFO        FLAGS                         1
    SYSSTATS_MAIN        CPUSPEEDNW           2110.16949
    SYSSTATS_MAIN        IOSEEKTIM                    10
    SYSSTATS_MAIN        IOTFRSPEED                 4096
    SYSSTATS_MAIN        SREADTIM
    SYSSTATS_MAIN        MREADTIM
    SYSSTATS_MAIN        CPUSPEED
    SYSSTATS_MAIN        MBRC
    SYSSTATS_MAIN        MAXTHR
    SYSSTATS_MAIN        SLAVETHR
    13 rows selected.
    {code}
    Now for the TKPROF of a mirrored test environment running on a 10G SID:
    {code}
    create table ALLIANCE  (
       ALLIANCEID           NUMBER(10)                      not null,
       NAME                 VARCHAR2(40)                    not null,
       CREATION_DATE        DATE,
       constraint PK_ALLIANCE primary key (ALLIANCEID)
               using index
           tablespace LIVE_INDEX
    tablespace LIVE_DATA
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.01          0          2         16           0
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.01       0.01          0          2         16           0
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 113
    {code}
    ... large section omitted ...
    Totals for the TKPROF on the 10g SID:
    {code}
    OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.02          0          0          0           0
    Execute      1      0.00       0.00          0          2         16           0
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.00       0.02          0          2         16           0
    Misses in library cache during parse: 1
    OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse       65      0.01       0.01          0          1         32           0
    Execute     84      0.04       0.09         20         90        272          35
    Fetch       88      0.00       0.10         30        281          0          64
    total      237      0.07       0.21         50        372        304          99
    Misses in library cache during parse: 38
    Misses in library cache during execute: 32
       10  user  SQL statements in session.
       76  internal SQL statements in session.
       86  SQL statements in session.
    Trace file: 10gSID_ora_32003.trc
    Trace file compatibility: 10.01.00
    Sort options: default
           1  session in tracefile.
          10  user  SQL statements in trace file.
          76  internal SQL statements in trace file.
          86  SQL statements in trace file.
          43  unique SQL statements in trace file.
         949  lines in trace file.
           0  elapsed seconds in trace file.
    {code}
    Edited by: user8598842 on Mar 11, 2010 5:08 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              

    So while this certainly isn't the most elegant of solutions, and most assuredly isn't in the realm of supported by Oracle...
    I've used the DBMS_IJOB.DROP_USER_JOBS('username'); package to remove the 194558 orphaned job entries from the job$ table. Don't ask, I've no clue how they all got there; but I've prepared some evil looks to unleash upon certain developers tomorrow morning.
    Not being able to reorganize the JOB$ table to free the now wasted ~67MB of space I've opted to create a new index on the JOB$ table to sidestep the full table scan.
    CREATE INDEX SYS.JOB_F1_THIS_NEXT ON SYS.JOB$ (FIELD1, THIS_DATE, NEXT_DATE) TABLESPACE SYSTEM;The next option would be to try to find a way to grant the select privilege to the role without using the aforementioned "after CREATE on schema" trigger and dbms_job call. This method was adopted to cover situations in which a developer manually added a table directly to the database rather than using the provided scripts to recreate their test environment.
    I assume that the following quote from the 11gR2 documentation is mistaken, and there is no such beast as "create or replace table" in 11g:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/statements_9003.htm#i2061306
    "Dropping a table invalidates dependent objects and removes object privileges on the table. If you want to re-create the table, then you must regrant object privileges on the table, re-create the indexes, integrity constraints, and triggers for the table, and respecify its storage parameters. Truncating and replacing have none of these effects. Therefore, removing rows with the TRUNCATE statement or replacing the table with a *CREATE OR REPLACE TABLE* statement can be more efficient than dropping and re-creating a table."

  • Socket creation errror in adaprer engine

    Hi Experts,
    I am getting below error message in sxmb_moni.
    Here my sceanrio is proxy to Soap synchronous. 
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: unable to create a socket</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    please let me know the problem

    com.sap.aii.af.ra.ms.api.DeliveryException: unable to create a socket
    Check with your network guys and confirm that the port you are using for this communication is able to pass the firewall settings....socket exception occurs when there is a firewall restriction on the port...
    Regards,
    Abhishek.

  • Slow context creation

    I seem to be having a problem with connection times progressively getting
              slower as machines are added to the cluster.
              For instance, at one machine my login time is ~.5 secs, at two machines
              login time has increased to ~1.5 secs, and at three machines in the cluster
              login time has increased to ~4.5 secs.
              I am running Weblogic 4.5 service pack 7 on Solaris 8. I am currently using
              jdk 1.2.006 reference implementation. This behavior seems to occur with
              native io on and off.
              Thanks
              R.D.
              

    How are you doing your lookup?
              - prasad
              "R.D. Cole" wrote:
              > I seem to be having a problem with connection times progressively getting
              > slower as machines are added to the cluster.
              >
              > For instance, at one machine my login time is ~.5 secs, at two machines
              > login time has increased to ~1.5 secs, and at three machines in the cluster
              > login time has increased to ~4.5 secs.
              >
              > I am running Weblogic 4.5 service pack 7 on Solaris 8. I am currently using
              > jdk 1.2.006 reference implementation. This behavior seems to occur with
              > native io on and off.
              >
              > Thanks
              > R.D.
              

  • IMPORTANT: FM11 & slow PDF creation - Adobe wants examples

    Note from Kapil Verma, FM's senior product manager:
    Hello Framers,
    Hope you are well. I noticed that some users have reported their observations with slow performance when publishing to PDF with FrameMaker 11 as compared to the previous version of FrameMaker. I wanted to let you know that we have not found such issues when doing internal testing and our customers also did not report this during the beta program.
    However, we wanted to work with you to iron out any potential issues there may be. So, if you are seeing a performance slowdown on your side, we would like to test some more with your files and investigate the issue you may be facing. It will be great if you can send your sample files (along with any details on steps, your environment etc. which will help reproduce the issue) to [email protected] and cc  me ([email protected]). Thanks for your cooperation and we look forward to working with you to resolve any issues there may be.
    Thanks,
    Kapil Verma
    Sr. Product Manager - FrameMaker | FrameMaker Publishing Server

    Based on the number of recent complaints about PDF rendering performance, it rather looks like there might be a problem with the newer FM releases. I can't personally say, because we're still on FM7/Unix, and don't use our FM9/Win764 versions for production.
    Printing to .ps and Distilling separately should help at least get your FM GUI prompt back sooner, and unless Adobe has broken it, the full Acrobat Pro product can be set to have Distiller "watch" directories for new .ps files, and generate PDFs without any user attention.
    It would be interesting to know if the rendering process is multi-threaded to any significant degree. if so, having more cores in your CPU would help.
    I'm also wondering if FM11 gets any benefit from installation on Win64.
    And at the risk of stimulating conspiracy theories, would using Framemaker Server print any faster? I at least presume that it would free up the workstations during print.
    Per-core CPU clocks hit the wall 10 years ago. Per core perf has been creeping up since then, with most of the per-chip gain in the form of more cores. Application coders, however, seem to be assuming that per-core performance is still ramping up at 2x@2yr as a side effect of Moore's Conjecture.

  • Slow computer = creation of slow VM?

    I have two virtual machines. Both are 
    Windows Server 2012 R2 64 bit.
    Have the same device settings ( 2GB RAM 1 processor 1 core)
    Created using the same iso
    I use the first vm for work in college/class and the 2nd one for practice that I made at home. Both machines run at different speeds with the first one being next to flawless(even when run from my home laptop) while the 2nd one being horribly slow. I created my class VM using the college computer which I'd say is definitely more powerful than my laptop at home, and my practice vm was created with my home laptop (i7 dual core 4gb ram). Are VMs significantly different from each other in terms of speed depending on the computer that was used to create them? Should I just clone my class vm which works almost perfectly instead of creating a new VM? I hope to be able to work soon on my server administration work for class.
    This is my first post and I'd appreciate any replies.

    I have two virtual machines. Both are 
    Windows Server 2012 R2 64 bit.
    Have the same device settings ( 2GB RAM 1 processor 1 core)
    Created using the same iso
    I use the first vm for work in college/class and the 2nd one for practice that I made at home. Both machines run at different speeds with the first one being next to flawless(even when run from my home laptop) while the 2nd one being horribly slow. I created my class VM using the college computer which I'd say is definitely more powerful than my laptop at home, and my practice vm was created with my home laptop (i7 dual core 4gb ram). Are VMs significantly different from each other in terms of speed depending on the computer that was used to create them? Should I just clone my class vm which works almost perfectly instead of creating a new VM? I hope to be able to work soon on my server administration work for class.
    This is my first post and I'd appreciate any replies.

  • Xfce and bluetooth socket creation error

    Trying to get blueman-applet to work with Bluez on XFCE.
    Everything works including searching and paring, but cannot send/receive from command line or nautilus/thunar.
    Blueman gives an error of socket registration. And obex_test does the same too.
    err (/usr/lib/python2.7/site-packages/blueman/ods/OdsManager.py:116)
    Couldn't create opp server (DBusException(dbus.String(u'Could not create server socket'),),)
    pa_context_event (/usr/lib/python2.7/site-packages/blueman/main/PulseAudioUtils.py:306)
    3
    err (/usr/lib/python2.7/site-packages/blueman/ods/OdsManager.py:116)
    Couldn't create ftp server (DBusException(dbus.String(u'Could not create server socket'),),)
    # su -
    # obex_test -b nn:nn:nn:nn:nn 5
    Using Bluetooth RFCOMM transport
    OBEX Interactive test client/server.
    > s
    Server register error! (Bluetooth)

    I just logged back in and saw this post of mine today.
    Since no one knew or at least produced a response to it so I would tell what I later found that day.
    The kernel I compiled was somehow missing one of the bluez support!

  • Portal Installed - Slow iView creation etc

    Hi,
    We have just completed the installation of the production EP 7 (2004s) on a new blade server.
    Config
    4 Swap Drives of 5GB each
    OS - 2003 Server standard edition SP1 on C Drive (12GB)
    EP instance installed on a separate netapps drive (40GB)
    *4GB RAM
    In creating a simple new iView it takes 3-4 minutes.
    What could be the reason? Is there a mechanism to improve performance?
    In our previous portal implementation (EP 6) the iView creation etc is very fast. (with a hardware configuration inferior to the one specified above)
    Any advice would be highly appreciated,
    Thanks and Regards,
    Antony.

    Hi,
    Nope actually, we are still encountering this problem. But there is a workaround. Say you have created an iview, you can copy such iview and change the relevant parameters later including the ID, name and all other particulars in order to create new iviews rather than creating new iviews altogether through the wizard.
    The copying activity takes just a couple of seconds.
    Hope this helps..
    Antony.
    P.S. : Reward points would be appreciated.

Maybe you are looking for