on 04-09-2008 1:03 AM
We had Enterprise Portal ( Java stack). How can we perform user trace in Java only stacks.I did lot of googling and posted this question having not found any straight answer
Thank you
Hi,
Not very sure about SMD but in java you can check the user trace in the ume log and trace files,there is no specific trace tcode or option in java.You can view there trace and log file in the visual admin directly.
cluster>server>services-->logconfigurator
categories>root category>system>security>user management
here you can set the severity
and using the log viewer option in the visual admin which would be clear than refering in the os level.
The log file for security trace would be in cluster/serverx/log/system/security log
Regards,
Vamshi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you very much for your inputs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just a note Rajendra,
The http traces can be analyzed directly from file system (no need of SMD) from the following paths :
/cluster/dispatcher/log/services/http/req_resp.X.trc HTTP requests and responses to the clients /cluster/server*/log/defaultTrace.X.trc
the default trace file for server nodes
/cluster/server*/log/system/httpaccess/responses.X.trc
Regards,
Snehal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Correct http traces can be seen without SMD, but what do they show? They only show which http requests the server has got. You can't see if such a request makes a call to an LDAP and if it failed. For this you need other tools. If that high level analysis helps, perfect don't use SMD. I just have my doubts....
Tracing a user can mean quite a lot. Not too sure what exactly you want to do. May be have a look into DSR and JARM. You find information about it on help.sap.com. If that is not what you need, please be more specific what exactly you want to achieve.
Regards,
Jochen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i mean we had a user ..and the user is able to log in from the portal but the portal screen is not getting loaded fully. So i want to trace the user . In ABAP stack we use ST05 to do this. In the similar way if we have only Java stack ( as it is Enterprise Portal) system, how can we trace the user?
As i mentioned i did search help.sap.com. I dont say its not there but atleast i couldnot find out.
Hello Rajendra,
If I understand right, you want to trace why a request from a particular user/client is failing.
You could trace a request from the particular user/client by using the http tracing functionality.
That along with defaultrace could show the entire request flow and what caused it to fail.
You could enable the HTTP Tracing on the J2EE Engine as described in SAP note 724719.
I'll paste below some explanation about the http traces :
There are already three types of traces provided in AS Java
/cluster/dispatcher/log/services/http/req_resp.X.trc HTTP requests and responses to the clients /cluster/server*/log/defaultTrace.X.trc
the default trace file for server nodes
/cluster/server*/log/system/httpaccess/responses.X.trc
client req/resp in CLF format
Here is a sample snippet of what you can see in the traces.
<req_resp.X.trc> provides timestamp, request/resp data, and client_id:
[1178178312419][May 3, 2007 9:45:12 AM ] - CLIENT: 2304, REQUEST:
^^^^
{GET /useradmin/userAdminServlet?createNewUser= HTTP/1.1
Accept: ...
You can map the client ID from the dispatcher trace to the client ID
traced into server default trace file. Also you can see:
- timestamp
- client ID
- request info (e.g. "new request initialized")
- HTTP request line ( GET POST HEAD <URI>)
<defaultTrace.X.trc>:
1178178312419 <<< timestamp match (or too little deviation)
^^^^
com.sap.engine.services.servlets_jsp.client.ServletRequest
client [2304] HttpServletRequest.init [1518ea7] in application [useradmi
^^^^
new request initialized,
^^^^^^^^^^
attributes: [com.sap.servlet.separator.zone = ~],
url: [GET /useradmin/userAdminServlet?createNewUser= HTTP/1.1]
The server also provides client IP tracing in responses.X.trc.
<responses.X.trc>:
[May 3, 2007 9:45:16 AM ] - 127.0.0.1 : <<<<< client IP
GET /useradmin/userAdminServlet?createNewUser= HTTP/1.1 200 16348
^^^^^ ^^^ ^^^
request line resp code resp length
**TO ENABLE SERVER HTTP TRACES :
You have to set the Severity to ALL for the following locations (Visual
Admin -> Server -> Services -> Log Configurator -> Locations tab):
com.sap.engine.services.servlets_jsp.client.RequestInfoClient
com.sap.engine.services.servlets_jsp.client.RequestInfoServer
com.sap.engine.services.servlets_jsp.client.ServletRequest
com.sap.engine.services.servlets_jsp.client.ServletResponse
This will enable HTTP requests processing trace on the server side.
VA -> Server -> Services -> Web Container -> Properties tab.
Set the property TraceLevel with value of 1. Save the changes.
Hope the above helps.
Regards,
Snehal
You can use the mentioned technologies, http trace, JARM, SAT, DSR, but I doubt that they suit you for your problem. May be they do, give it a try. The latest detail is only available via SMD. In regards to your question how to use it, sorry but that can't be answered in a forum. There are many how to guides, there are config guides and all sort of things. After you have read this and if you have a specific question post this.
User | Count |
---|---|
86 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.