We're migrating SQL2005 Enterprise to SQL2012 Enterprise (on a new server too, from WIn2003 to Win2012).
Is there a way to test multiple connections to the database to prove it can take the same load as the previous server?
The application is a website, .Net3.5 with Min and Max pool size set in the connection string.
You can do it via Apache JMeter and next few steps:
Download jTDS JDBC Driver and drop it to /lib folder of your JMeter installation
Restart JMeter
Add Thread Group to Test Plan and configure virtual users and iterations count
Add JDBC Connection Configuration and provide JDBC url, driver class name and credentials
Database URL: jdbc:jtds:<server_type>://<server>[:<port>][/<database>][;<property>=<value>[;...]]
JDBC Driver class name: net.sourceforge.jtds.jdbc.Driver
Add JDBC Request sampler and put your query there
Repeat step 5 for all query types
Add a listener, i.e. Aggregare Report
See The Real Secret to Building a Database Test Plan With JMeter guide for more detailed explanation of database load testing domain.
Related
In JMeter how to add connection string of Cosmos DB and how to configure all required JDBC driver setting in JMeter to connect Cosmos DB ?
Depending on how much you want to invest in terms of money and time the options are in:
Cdata Cosmos DB JDBC Driver (as of now it is something like $2k per machine per year). If you go for this option you will have possibility to use JMeter's JDBC Connection Configuration and JDBC Request sampler normally.
There is a Java SDK for CosmosDB, so you can download client library, add it to JMeter Classpath and use DocumentClient class in order to establish connection and perform operations from JSR223 Sampler using Groovy language.
Check out NoSQL tutorial: Build a SQL API Java console application article for comprehensive instructions, example code, etc.
I need to make JDBC connection using Jmeter to Microsoft SQL server which uses Active Directory - Integrated authentication method to connect to DB. Below are the setting I have done in Jmeter.
When I ran the Jmeter it shows the below exception
java.sql.SQLException: Cannot create PoolableConnectionFactory (This driver is not configured for integrated authentication.
Kindly let me know is there any setting needs to be modified to overcome this issue.
Download Microsoft JDBC Driver
Copy mssql-jdbc-6.2.2.jre8.jar to JMeter Classpath
Copy sqljdbc_auth.dll from auth\x64 folder to java.library.path or specify java.library.path property to point to this file location using either -D command-line argument or via system.properties file
Restart JMeter to pick the files up
Add integratedSecurity=true line to your JDBC URL
More information: The Real Secret to Building a Database Test Plan With JMeter
I've installed a instance of SQL Server and i select Integration Services in the setup wizard.
However, when I run SQL Server Management Studio as 'Administrator', I can see my instance under.
Database Engine
Analysis Services
Reporting Services
However, I can't see my instance under 'Integration Services'.
The service is running in Configuration Manager.
UPDATE 1
When trying to enter the server name manually it gives the following error:
the RPC server is unavailable
If you means this form:
For the first time you login you have to enter the integration services server name manually, Note that you don't have to enter the full instance name Server\Instance, you just need to enter the Server name.
Example:
If the machine name is MyPC and the SQL server instance is SQLDATA, then you should enter MyPC not MyPC\SQLDATA
UPDATE
the RPC server is unavailable
if you are sure that your account has sufficient privileges you can follow the links provided in the following MSDN answer.
The RPC Server is unavailable - Tried almost everything!
You may need to open port 135 (or whatever port SSIS is running under) in Windows Firewall on the server.
It would be good to specify the executable path (such as E:\Microsoft SQL Server\130\DTS\Binn\MsDtsSrvr.exe) as well as the specific network type that these connections should come from.
I'm using Jmeter 2.9 and trying to connect to SQL Server 2008.
Within JDBC Connection Configuration and have the following in my connection properties:
Database URL = jdbc:microsoft:sqlserver://x.x.x.x:1433
JDBC Driver Class = com.microsoft.sqlserver.jdbc.SQLServerDriver
I've downloaded the latest Microsoft SQL Server JDBC Drivers and placed the following jars under jmeter/lib directory: sqljdbc.jar, sqljdbc4.jar.
I'm getting the following error:
java.sql.SQLException: No suitable driver found for jdbc:microsoft:sqlserver://x.x.x.x:1433
Can you please suggest what I'm missing?
your solution does not work for me, here is my solution:
​Adding jdbc connection Library into Jmeter lib folder:
Download the lastest jdbc driver from Microsoft
http://msdn.microsoft.com/en-us/sqlserver/aa937724.aspx
Unzip the file and find which driver you need:
http://msdn.microsoft.com/en-us/library/ms378422.aspx
Copy the required JAR file into jmeter/lib folder. (you need to restart the jmeter if you are running it.)
in my JDBC Configuration:
DatabaseURL: jdbc:sqlserver://localhost:port;DatabaseName=mydb;
JDBC Driver Class: com.microsoft.sqlserver.jdbc.SQLServerDriver
User Name: (SQL server access user name)
Password: (user's password)
Give a Variable name for the config: e.g. JDBC_Connection
When you create a JDBC request, use this name in "Variable Name Bound to Pool" field.
The only thing I can add to Vin.X's answer is that you can specify the location of your sqljdbc4.jar as a property of your test plan, by browsing for it where it says Add directory or jar to classpath
This is useful if you want to keep libs like this separate from your jMeter distribution folder, to make it easier to update jMeter for example.
First download JDBC jar files from below link i have shared:
http://tinyurl.com/o5hgpmt
Extract all *.jar files to: C:\apache-jmeter-2.11\lib
then start JMeter
and in your JDBC Connection Configuration element write below connections as per your database:
Database URL: jdbc:jtds:sqlserver://x.x.x.x:1433;DatabaseName=yourdatabase;
JDBC Driver class: net.sourceforge.jtds.jdbc.Driver
Username: give username of the sql server database
Password: give password of the sql server database
My connection is successful..
Hope this helps every body..
I am attempting to create a new Data Service in WSO2 Data Services Server to connect with SQL Server 2005. However, every time I test the connection I receive the error message "Driver class com.microsoft.jdbc.sqlserver.SQLServerDriver can not be loaded".
Data Source Type: RDBMS, Non-XA-DataSource
Database Engine: Microsoft SQL Server
Driver: com.microsoft.jdbc.sqlserver.SQLServerDriver
...
I don't believe my connection string or credentials are a problem as it fails on loading the driver.
What is the step that I'm missing in this process?
You have to put the Microsoft SQL driver jar inside repository/components/lib of DSS distribution in order to load the driver class.
The folder structure has changed for Enterprise Integrator v6 you will need to drop off the file into your [EI_HOME]/lib folder. Default folder is "C:\Program Files\WSO2\Enterprise Integrator\6.6.0\lib".
Depending on what version of Java you are using, you may download the corresponding version from here.
Extract the file and you drop the jar:
mssql-jdbc-7.2.2.jre8.jar - for java 1.8 class version 52
Check out this link for class versions.