Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

how to find the weblogic server start time in unix. i have give ps -f | grep port number

but it is showing my current system time.

how to find this

share|improve this question

3 Answers 3

I use this in in Linux and Solaris to find a process in ps based listening ports.

ps -ef | grep `lsof  -i :7001 | grep "LISTEN"|awk '{print $2}'`
share|improve this answer

Add e(Select all processes) argument:

ps -ef | grep PORT_NUMBER
share|improve this answer

It depends on the time resolution you need. If the process started more than 24 hours ago you'll have only the date of its start given in ps -ef output.

Try looking into the system's logs. There's a good chance that the starting server wrote a line or two into the log.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.