superfang ·¢±íÓÚ 2008-7-27 01:45:13

ΪʲôTPSͻȻ±äСÁËÄØ£¿

ÎÒ×öÁËÒ»¸öSQLµÄÐÔÄܲâÊÔ.ÓÃJAVAдµÄ. WINDOW XP ,SQL SERVER 2000
   µ«ÊÇÔÚÔËÐлúÁË:5:20ÃëµÄʱºò,·¢ÏÖÊÂÎñÊýʧ°ÜµÄÌ«¶àÁË.ÎҲ鿴ÁË´íÎóÈÕÖ¾.·¢ÏÖÁË ´íÎóÊÇÕâÑùµÄ:
   error -1799system.err java.sql.sqlexception error establishing socket
´ÓÉÏÃæµÄ´íÎóÐÅÏ¢¿ÉÒԲ鿴³ö,ÊÇÔÚ×¢²áSQLÇý¶¯Ê±Ê§°ÜÁË. µ«ÎÒÓֲ鿴ÁËϵ±Ê±µÄ
   Ó²¼þÇé¿ö(CPU ,MEM,HARDDISK)¶¼ÊÇÕý³£µÄ,
   ÍøÂç:ÎÒÊÇÔÚ±¾»ú×öµÄѹÁ¦²âÊÔ
   µ«ÊǾÍÊÇ×¢²áÊý¾Ý¿âÇý¶¯Ê±Ê§°ÜÁË... ²»ÖªµÀΪʲô?

JAVA ´úÂëΪÏÂÃæËùʾ:
   /*
* LoadRunner Java script. (Build: 873)
*
* Script Description:
*                     
*/

import lrapi.lr;
//import java.sql.*;
import com.sql.TestJDBC;
import java.io.*;

public class Actions
{

        public int init() throws Throwable {
                return 0;
        }//end of init


        public int action() throws Throwable {
                String user = "sa" ;
                String password = "sa" ;
                String sel = "select * from student where id > 950" ;
                //String sel = "select * from student" ;
                TestJDBC.main(user,password ,sel);
               
                return 0;
        }//end of action


        public int end() throws Throwable {
                return 0;
        }//end of end
}

[ ±¾Ìû×îºóÓÉ superfang ÓÚ 2008-7-27 01:49 ±à¼­ ]

Zee ·¢±íÓÚ 2008-7-27 18:48:54

¿´¿´SQLµÄÈÕÖ¾.

superfang ·¢±íÓÚ 2008-7-27 20:28:22

2008-07-26 10:11:53.11 server    Copyright (C) 1988-2002 Microsoft Corporation.
2008-07-26 10:11:53.11 server    ±£ÁôËùÓÐȨÀû¡£
2008-07-26 10:11:53.13 server    ·þÎñÆ÷½ø³Ì ID ÊÇ 1980¡£
2008-07-26 10:11:53.13 server    ½« SQL Server ÏûÏ¢¼Ç¼ÔÚÎļþ¡°C:\Program Files\Microsoft SQL Server\MSSQL\log\ERRORLOG¡±ÖС£
2008-07-26 10:11:53.21 server    SQL Server ÕýÔÚÒÔÓÅÏȼ¶¡°normal¡±£¨ÒѼì²âµ½ 1 CPU£©Æô¶¯¡£
2008-07-26 10:11:54.26 server    ÒÑΪ thread ģʽ´¦Àí¶øÅäÖÃÁË SQL Server¡£
2008-07-26 10:11:54.41 server    ʹÓà dynamic Ëø·ÖÅä¡£ Ëø¿é£¬ ËøËùÓÐÕß¿é¡£
2008-07-26 10:11:55.68 spid3   Æô¶¯Êý¾Ý¿â¡°master¡±¡£
2008-07-26 10:11:59.25 server    ÕýÔÚʹÓá°SSNETLIB.DLL¡±°æ±¾¡°8.0.2039¡±¡£
2008-07-26 10:11:59.25 spid5   Æô¶¯Êý¾Ý¿â¡°model¡±¡£
2008-07-26 10:11:59.28 spid3   ·þÎñÆ÷Ãû³ÆÊÇ¡°FANGTIESUO¡±¡£
2008-07-26 10:11:59.28 spid3   Skipping startup of clean database id 4
2008-07-26 10:11:59.33 spid3   Skipping startup of clean database id 5
2008-07-26 10:11:59.33 spid3   Skipping startup of clean database id 6
2008-07-26 10:11:59.33 spid3   Skipping startup of clean database id 7
2008-07-26 10:11:59.66 server    SQL Server ÕýÔÚ¼àÌý 127.0.0.1: 1433¡£
2008-07-26 10:11:59.96 spid5   Çå³ý tempdb Êý¾Ý¿â¡£
2008-07-26 10:12:00.01 server    SQL Server ÕýÔÚ¼àÌý TCP, Shared Memory, Named Pipes¡£
2008-07-26 10:12:00.01 server    SQL Server ÒÑ×¼±¸ºÃ½øÐпͻ§¶ËÁ¬½Ó
2008-07-26 10:12:01.13 spid5   Æô¶¯Êý¾Ý¿â¡°tempdb¡±¡£
2008-07-26 10:12:01.55 spid3   »Ö¸´Íê³É¡£
2008-07-26 10:12:01.55 spid3   SQL global counter collection task is created.
   ÕâÊÇ´íÎóÈÕÖ¾... ²»Ã÷°×ʲôÒâ˼? ÇëÂ¥Ö÷°ïÎÒ¿´¿´ÊÇʲôԭÒòÄØ?

[ ±¾Ìû×îºóÓÉ superfang ÓÚ 2008-7-27 20:29 ±à¼­ ]

superfang ·¢±íÓÚ 2008-7-27 20:39:19

»Ø¸´ 2# µÄÌû×Ó

2008-07-27 20:35:40.36 spid11    SQL Server ÒÑΪ 8 ¸ö²¢·¢²éѯ¶øÓÅ»¯¡£15 ¸ö²éѯ³¬¹ýÁË´ËÏÞÖÆ£¬Òò¶øÐÔÄÜ¿ÉÄÜ»áÊܵ½²»Á¼Ó°Ïì¡£
ʲôÒâ˼?Â¥Ö÷ÖªµÀ²»? Çë½²ÏÂ...ÎÒ²»ÊǺÜÃ÷°×Õâ¸öÈÕÖ¾µÄº¬Òå...
Ò³: [1]
²é¿´ÍêÕû°æ±¾: ΪʲôTPSͻȻ±äСÁËÄØ£¿