Why timesten is slow in client/server mode

i am testing Timesten client/server mode and find that
it is to slow.
when using dircet mode, timesten can precoss about 40000 query pre second
but when change to client/ server mode
it can only process 1500 query pre second.
here is my config and test sql.
[Test_tt702]
Driver=//u01/oracle/TimesTen/tt70/lib/libtten.a
DataStore=//u01/oracle/TimesTen/tt70/info/DemoDataStore/Test_tt702
DatabaseCharacterSet=US7ASCII
TempSize=64
PermSize=250
Temporary=1
TypeMode=1
CREATE TABLE TEST999
A1 number NOT NULL PRIMARY KEY ,
A2 number,
A3 number
network card is 1000m,
query code:
PreparedStatement pSel = dbConn.prepareStatement("select a1,a2 from TEST999 where a1=?");
rs = null;
int a1=0;
int a2=0;
for(int i=0;i<80000 ;i++)
     pSel.setInt(1,i );
rs=pSel.executeQuery( );
if (rs.next()) {
     a1 = rs.getInt(1);
     a2 = rs.getInt(2);
     if( i%8000==0) {
     System.out.println("select "+ i +" res="+a1 +" time " + getTime_v2());
     rs.close();
direct mode time : 80000 query is 2 second
client/server mode in the same machine : 80000 query is 12 second
client/server mode in the different machine : 80000 query is 54 second
any one have idea about this?
is it the jdbc driver 's promble?

it is to be expected that there will be a big difference in performance between direct mode and client/server due to much greater overhead in client/server, especially if the client is on a different machine. However, the differences you are seeing here are larger than I would normally expect.
You say (I think) that the network is 1 GB, correct? What is the hardware spec of the test machine(s)? Have you tuned the O/S network stack for optimal performance?
Typically, for local client/server using the fastest IPC mode (shmipc) I expect performance of around 20-30% of direct mode and for remote client/server with a GB LAN I would expect performance of around 10-20% of direct mode.
Chris

Similar Messages

  • WARNING - Oracle intends to desupport Forms client server mode

    When Forms 6i becomes desupported you will have to move to Forms 9i. Forms 9i runtime can only be run in web mode from a web browser. You will not be able to run client-server forms in native operating systems such as Windows or Unix. The forms will essentially run on the application server with Java applets to being sent to your web browser. Links to third party products will no longer work with host commands executing on your local machine. You will have to include Java code to make local commands work.
    The transition from Forms 6i client-server to Forms 9i web mode will be one of the most painful upgrades Oracle has ever inflicted on its customers.
    Essentially, Oracle is trying to palm us off with running forms from web browsers whether we or our customers like it or not. Java seems to be creeping in. I suspect Developer will eventually turn into JDeveloper, as they will not want to support two products. Easy one line statements and built-ins will be replaced by hundreds of lines of Java nonsense. Developer will move from a 4GL RAD environment to a cumbersome bloated 3GL Java environment.
    You can stop this happening if you want to keep you customers happy by:
    1. Sending Oracle enhancement requests to allow Forms 9i to run in native client-server mode.
    2. Complaining to your Oracle sales contact.
    3. Asking difficult questions at Oracle user groups.

    Duncan et al.,
    I've been wondering why exactly a Forms9i app. needs to run in a web page? Why could the applet not be deployed in a more "standalone" fashion, i.e., an independent application window. This would at least offer the appearance of a native application, complete with the new Java look-and-feel.
    If Oracle really wanted make their customers happy, they would then take the next step and come up with a way to embed OC4J into a client-side deployment executable, which would then effectively allow for a 2-tier client-server architecture.
    It seems to me that 2-tier/3-tier each have their place in the world, depending on the situation. In the extreme "2-tier" example would be an application that is to be deployed on a single client workstation. It would be hard to argue that a separate application server ought to be used. On the other extreme, anybody who has tried to manage the deployment--and upgrade--of a large number of Forms clients is very attracted to the prospect of only having to maintain and upgrade a few application servers.
    I agree with the direction of the product as far as replacing Toolkit2 and the native runtime with the JRE. The advantage of on-demand updating of application code is compelling. The capability of moving application logic to the middle tier is extremely useful. Platform independence is now done using the "universal" JRE instead of TK2.
    If the product could maintain the client-side processing capability--without resorting to Javabeans--it would be just that much stronger. As an application architect, I want to be able to design the application to allocate the work where it makes the most sense, either on the client, the application server, or the database server.
    How hard would it be to put this client-side processing capability back into the product?
    Regards,
    Bruce MacDonald

  • Client Server mode for time ten connection

    Hi, I am new to Times Ten and got a question for running TimesTen in Client Server Mode. When it is running in Client/Server mode:
    Does the database just run like a regular remote database ?
    Is there security for the remote application, such as userid/password ?
    Is there any limitation on number of remote connection can concurrently connect to the DB ?
    Does it use the JDBC or it has to be the native library ?
    Thank you for your help
    Henry

    Hi,
    With regard to your questions regarding TimesTen client/server mode:
    1. Does the database just run like a regular remote database ?
    I'm not sure exactly what you are getting at here but yes, I would say that it runs like any other c/s database. If you can be more specific in your question then I can give a more precise answer.
    2. Is there security for the remote application, such as userid/password ?
    If the TimesTen instance to which you are connecting was installed with Access Control enabled then yes, normal userid/password security applies. The client application must provide a valid TimesTen userid and password in order to establish a connection.
    3. Is there any limitation on number of remote connection can concurrently connect to the DB ?
    Subject to O/S resource limitations, a single instance of TimesTen (i.e. the TT server) supports a maximum of 9,999 concurrent client/server connections. Each individual datastore supports a maximum of 2047 concurrent connections (direct and client/server).
    4. Does it use the JDBC or it has to be the native library ?
    The TimesTen JDBC driver supports both direct modde and client/server. The TimesTen ODBC driver is provided in both direct mode and client/server versions. The JDBC driver uses the ODBC driver (it is a type 2 JDBC driver) and so the client machine requires a TimesTen client installation to use either ODBC or JDBC to access a remote datastore.
    Chris

  • Pjc for client-server mode

    hi,
    i have been using pjc for customized text field and text area and have successfully implemented it on windows and sun solaris. we have used pjc for working in non english character set so that the user can directly type in the required character set without any supporting application to enable new keyboard mapping. but i have a serious problem.
    these customized components work only on the webforms mode.i.e. on browser or applet. they dont work in the normal client server mode. is it possible that i can have them running in the normal runtime also. if yes then how and if not what is the work around for achieving the same without much effort.
    awaiting a prompt reply.
    thanks in advance,
    regards,
    Yousuf.
    Delhi.

    Dear Yousof,
    I want to do the same thing that u'vve already acheived, I want to customize oracle forms texfields and instead of EXTENDING VTextfield I want to extend JTextfield and ofcourse implementing IView interface.
    But I get problems, would u mind be kind enough to instruct me in doing that?
    Best regrds,
    Sasan

  • Use of UI60_ICON in CLient Server Mode

    Help
    running a form in Client server mode it does not seem to want to
    look at my setting for UI60_ICON or TK60_ICON. Is this a known
    problem?
    Geoff Coleman
    null

    Hello Geoff:
    You need to use UI_ICON
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Geoff Coleman ([email protected]):
    Help
    running a form in Client server mode it does not seem to want to
    look at my setting for UI60_ICON or TK60_ICON. Is this a known
    problem?
    Geoff Coleman<HR></BLOCKQUOTE>
    null

  • D2k in client server mode & web environment

    Hi friends,
    I am using forms 6i with oracle 9i. I have a couple of questions, please advice.
    I have developed couple of forms in client server mode and this would be added to an existing application. I have been informed now that the application is web based. I have no idea about how a form can be coded_for or deployed_in web based environment.
    Is there any provision to convert the forms developed in client server mode so that we can use it in web based application ?
    what is the effort required in doing this conversion ?
    Do we have any docs for using d2k forms in a web environment ?
    Plz feel free to point out if I have missed any detail without which it is difficult to answer this question.
    Thanks
    -vish

    Hello,
    It is very easy to migrate from C/S to web, because of the portabilty of the Forms design code (.fmb)
    All you have to do, is to recompile the modules with the new binaries. The only "but" is that some instructions have been depreciated, and you have to rewrite them (often client machine interactions, that are covered by the Webutil library).
    goto the OTN Forms home page, then click the Migration link.
    Francois

  • Oracle form 6i in client server mode to call web service

    Hi,
    I am using oracle form 6i running in client server mode. My database version is 8.1.7.4. Now I am required to call an external web service. Is it possible to call web service without the existence of application server or web server? Please help!

    I have tried the method illustrated by the Form 10g Demo. However, when I select the Import Java Classes from the pull down menu, I have got the following error:
    PDE-UJI002 Unable to find the required Java Importer Classes.
    My Oracle Form version is as follows:
    Forms [32 Bit] Version 6.0.8.19.2 (Production)
    Oracle8i Enterprise Edition Release 8.1.7.0.0 - 64bit Production
    With the Partitioning option
    JServer Release 8.1.7.0.0 - 64bit Production
    Oracle Toolkit Version 6.0.8.19.1 (Production)
    PL/SQL Version 8.0.6.3.0 (Production)
    Oracle Procedure Builder V6.0.8.17.0 Build #863 - Production
    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
    Oracle Query Builder 6.0.7.1.0 - Production
    Oracle Virtual Graphics System Version 6.0.5.38.0 (Production)
    Oracle Tools GUI Utilities Version 6.0.8.11.0 (Production)
    Oracle Multimedia Version 6.0.8.18.1 (Production)
    Oracle Tools Integration Version 6.0.8.18.0 (Production)
    Oracle Tools Common Area Version 6.0.8.18.0
    Oracle CORE Version 4.0.6.0.0 - Production
    Please help !

  • Oracle 9i Forms in Client/Server Mode (Updates in Technical FAQ)

    Hi All,
    I'm doing an investigation for porting to Oracle Forms 9i and I've found the answers in Oracle 9i Forms Technical FAQ of February 2003. But since it's been more than three and a half years, I would like to know if the following information in the FAQ still holds?
    Upgrading to 9i
    What versions of Forms can I upgrade to Oracle9i Forms?
    Only Forms 6.0 and Forms 6i are supported for direct upgrade to Oracle9i Forms. Older versions of Forms should be upgraded to Forms 6i first.
    Can I run Client Server or Character Mode applications in Oracle9i Forms?
    No. Oracle9i Forms only supports Web deployment. Applications that need to be run in Client Server or Character Mode should remain in Forms 6i. Forms 6i will be supported until December 31st, 2004, or December 31st, 2007 with Extended Support for customers who wish to maintain such applications.
    What changes will I have to make to my application before upgrading?
    Many Client Server and Character Mode features have been removed from the Forms product for 9i. The removed features mainly relate to features that where only maintained in Forms 6i for the purpose of backwards compatibility. A detailed list of all of the obsolete features can be found on OTN (/products/forms/pdf/featuresobsolescence.pdf)
    Is there an easy way to find out if my modules use obsolete features?
    Yes. Oracle supply a separate utility with the Oracle9i Forms distribution "f90plsqlconv". This is a utility which will scan your files for obsolete usages and correct them where applicable. It will also alert you to any changes you may have to make manually.

    As far as I know it still holds: Forms9i isn't changed since then.
    What I don't see in the FAQs is if you move form client/server to the web that you must be aware that the forms are running on the application server instead of the client PC. So calls to TEXT_IO and HOST etc are also executed on the appserver. You should review those calls and decide were you want to have them executed...(use webutil if you want to keep the execution on the client)
    HTH

  • Developer 6.0 - Client/server mode

    Assuming I have an application server between the front and back ends, what needs to be running in the middle tier, if I am running strictly client/server ?

    It's, first, a problem of client power. On 3 tier, the client needs to do nothing else except run the web browser; the PL/SQL code in forms/reports running on the application server. So, a 3rd tier client might be even an old 486, while a pure client-server would have to be Pentium, preferably 64 MB RAM, have enough disk space for the application and have Forms & Reports runtime installed.
    Then, there is a matter of network communication: an application server could accomodate more clients than classic client-server.

  • How to identify if timesten used is client-server mode talking to oracle db

    we have existing code in C++. It uses timesten 64bit. I wanted to find out which part of code is actually talking to oracle db.
    Is there any keyword or function which will help me to find it out?
    Or other way, is there a way to find out if timesten is not running in client mode and not talking to oracle.
    Please advice.

    I'm not sure I fully understand the question. I you have a C++ application that uses TimesTen then, unless you have explicitly coded statemenyts to connect to Oracle DB none of the application code will be talking to Oracle DB. If TimesTen is used in standlaone mode then it has no dependency on Oracle DB. If you are using TimesTen as a cache then all communication between TimesTen and Oracle DB occurs in one of (a) the TimesTen library, (b) The Cache Agent, or (c) the Replication agent.
    Chris

  • ODBC Client/Server mode, multi-thread running problem

    I got following message when I was running mutithread program, with ODBC API.
    Does anyone have this experence? Who can solve this? thanks!
    [TimesTen][TimesTen 7.0.4.0.0 CLIENT]Communication link failure. System call recv() failed with OS error 73. ECONNRESET: The connection has been broken during a network send or read operation. Probably the server exited unexpectedly.

    But We still got the message.
    Do we make a mistake with calling ODBC API ? or other programming error?
    - server log:
    17:03:35.89 Err : SRV: 1740850: EventID=99| Denying connection request from an u
    nknown source
    17:03:35.89 Err : SRV: 1740850: EventID=68| Failed to read request from client.
    Closing connection without reply.
    2008-09-05 17:06:22.69 Warn: : 1986668: 8396816 exited while connected to dat
    a store '/home/timesten/datastore/tt_ds' shm 134223114 count=7
    17:13:43.43 Err : SRV: 2707458: EventID=99| Denying connection request from an u
    nknown source
    17:13:43.43 Err : SRV: 2707458: EventID=68| Failed to read request from client.
    Closing connection without reply.
    ===============================================
    - client log:
    [ TimesTen ][ T imesTen 7.0.4.0.0 CLIENT ]Communication link failure. System call select() failed with OS
    error 78. This operation has Timed Out. Try increasing your ODBC timeout attribute or check to make sure the target TimesTen Server is running, nativeErr=0
    [ TimesTen ][ T imesTen 7.0.4.0.0 CLIENT ]Communication link failure. System call recv() failed with OS
    error 73. ECONNRESET: The connection has been broken during a network send or read operation.
    Probably the server exited unexpectedly., nativeErr=0
    Edited by: user4565028 on 2008/9/5 上午 2:45
    Edited by: user4565028 on 2008/9/5 上午 2:45
    Edited by: user4565028 on 2008/9/5 上午 2:46

  • Oracle 9i Sample Schema running in client/server mode?

    I've got Oracle 9i up on RH7.3 and have successfully executed the sample schema on the Server using the mksample.sql script.
    Now the challenge is to run these same (sample schema) SQL scripts across a network using a 9i client. I copied the demo/schema files from the server installation to the client but when I invoke the mksample script the passwords have to include a connect_identifier which, in this environment, causes the subordinate scripts to get confused.
    Has anyone else attempted to do this?

    You did not have to change any of your scripts to put the connect_identifier.
    Within SQL*Plus you can use the "SET INSTANCE <connect_identifier>" command to make that Oracle instance
    your default for this session. After you do this, all your connect statements will not require a
    connect_identifier.
    ==============================================================
    $ sqlplus /nolog
    SQL> set instance ORA901
    Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
    With the Partitioning option
    JServer Release 9.0.1.1.1 - Production
    SQL> connect scott/tiger
    Connected.
    SQL>
    ==============================================================
    As you can see, after the SET INSTANCE command, the connect command does not need a connect_identifier.

  • Slow iperf in server mode

    recently I have tested OVM 3.1.1 guest network throughput over 10GigE using iperf.
    I discover an asymmetric behavior.
    Between baremetal RHEL and Vmware RHEL guest, I have seen 820MB/s with either acting as iperf server or client
    Between baremetal RHEL and OVM RHEL guest, I got 617MB/s with baremetal acting as iperf server, and 120MB/s with OVM guest acting as iperf server.
    Further testing shows between two OVM guest on same OVM server, iperf shows symmetric performance at 620MB/s.
    However, when I move one of the OVM guest to another OVM server, then iperf drop down to 120MB/s on both iperf client and server test.
    Any one have seen this before?

    quitting and relaunching helped

  • ODBC Client/Server Mode, unexpected scale for non-numeric type

    When I connect to Oracle RDB via Oracle ODBC driver, I noticed the SQLBindCol for the CHAR type returns scale=0 while scaleLen=-2. This behavior is different from MS native ODBC driver and also vary from IBM DataDirect. For MS ODBC driver and IBM DataDirect, the scale length for CHAR type is -1 and the scale=0, this is reasonable return because the scale is not used for character type. I don't understand why Oracle ODBC returns scale length 2 for all kinds of data types. The ODBC API call as below. Is this scale length expected for character type?
    CREATE TABLE TT01(COL1 CHAR(257));
      // Allocate a statement handle
      rc = SQLAllocHandle(
                           SQL_HANDLE_STMT,
                           odbcConn->m_hdbc,
                           &hstmt1);
      // Get the columns information.
      rc =SQLColumns(
                      hstmt1,
                      NULL, 0,
                      (SQLCHAR *)remote_schema_dscp, -3,
                      (SQLCHAR *)remote_table_dscp, -3,
                      NULL, 0); 
      // Bind columns from the result set.
      rc = SQLBindCol(hstmt1, (short)9, SQL_C_SHORT, &scale,0, &scaleLen);            // scale=0, however scaleLen=2

    Dear Yousof,
    I want to do the same thing that u'vve already acheived, I want to customize oracle forms texfields and instead of EXTENDING VTextfield I want to extend JTextfield and ofcourse implementing IView interface.
    But I get problems, would u mind be kind enough to instruct me in doing that?
    Best regrds,
    Sasan

  • Client/server mode URL

    My forms builder worked last week, but now when I hit Run, IE opens this URL
    http://127.0.0.1:3010/xWCS8YhJ5TnHk4jO2AbnjiXCJghYV6HxnOFPEhTiF8hjfxxI
    which does nothing.
    My Apllication Server URL is set to http://CCO-47634253.DFASDMI.DS.DFAS.MIL:8889/forms/frmservlet
    I'm losr, please help.
    Ron

    I did that. The 1st time I went there, it was blank, so I hit 'Set defult and it put in http://CCO-47634253.DFASDMI.DS.DFAS.MIL:8889/forms/frmservlet, which is correct. But hitting Run still opens junk URL

Maybe you are looking for