# Performance Analyzer Webservice does not come up

**URL:** <https://forum.opensearch.org/t/performance-analyzer-webservice-does-not-come-up/20831>\
**Category:** Performance Analyzer\
**Tags:** troubleshoot, configure\
**Created:** [August 15, 2024, 3:29am UTC](https://forum.opensearch.org/t/performance-analyzer-webservice-does-not-come-up/20831 "2024-08-15T03:29:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![pdcuong27](https://avatars.discourse-cdn.com/v4/letter/p/a5b964/32.png) [@pdcuong27](https://forum.opensearch.org/u/pdcuong27)\
**Post date:** [August 15, 2024, 3:29am UTC](https://forum.opensearch.org/t/performance-analyzer-webservice-does-not-come-up/20831/1 "2024-08-15T03:29:28Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):  
opensearch: 2.14. Dashboard = 2.14, ubuntu 24.02

**Describe the issue** :  
curl [http://localhost:9600/\_plugins/\_performanceanalyzer/metrics/units](http://localhost:9600/_plugins/_performanceanalyzer/metrics/units) -k -u ‘admin:admin’  
have timeout all time .

**Configuration** :  
docker-compose.yml

```auto

services:

  os01:
    restart: always
    image: opensearchproject/opensearch:2.14.0
    environment:
      UID: 1000
      GID: 1000      
      OPENSEARCH_JAVA_OPTS: "-Xms1024m -Xmx1024m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
      node.name: os01
      discovery.seed_hosts: os01,os02
      cluster.initial_master_nodes: os01,os02
      plugins.security.ssl.transport.pemkey_filepath: certificates/os01/os01.key # relative path
      plugins.security.ssl.transport.pemcert_filepath: certificates/os01/os01.pem
      plugins.security.ssl.http.pemkey_filepath: certificates/os01/os01.key
      plugins.security.ssl.http.pemcert_filepath: certificates/os01/os01.pem
      DISABLE_INSTALL_DEMO_CONFIG: "true"
      JAVA_HOME: /usr/share/opensearch/jdk
      bootstrap.memory_lock: "true" # along with the memlock settings below, disables swapping
      network.host: "0.0.0.0"
    ulimits: 
      memlock:
        soft: -1
        hard: -1
    volumes:
      - "./opensearch.yml:/usr/share/opensearch/config/opensearch.yml"
      - "os-data1:/usr/share/opensearch/data"
      - "./certs:/usr/share/opensearch/config/certificates:ro"
    logging:
      driver: "json-file"
      options:
        max-size: "100m"
        max-file: "1"
    ports:
      - 9200:9200
      - 9600:9600 # required for Performance Analyzer
  
  os02:
    restart: always
    image: opensearchproject/opensearch:2.14.0
    environment:
      UID: 1000
      GID: 1000      
      OPENSEARCH_JAVA_OPTS: "-Xms1024m -Xmx1024m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
      node.name: os02
      discovery.seed_hosts: os01,os02
      cluster.initial_master_nodes: os01,os02
      plugins.security.ssl.transport.pemkey_filepath: certificates/os02/os02.key # relative path
      plugins.security.ssl.transport.pemcert_filepath: certificates/os02/os02.pem
      plugins.security.ssl.http.pemkey_filepath: certificates/os02/os02.key
      plugins.security.ssl.http.pemcert_filepath: certificates/os02/os02.pem
      DISABLE_INSTALL_DEMO_CONFIG: "true"
      JAVA_HOME: /usr/share/opensearch/jdk
      bootstrap.memory_lock: "true" # along with the memlock settings below, disables swapping
      network.host: "0.0.0.0"
    ulimits: 
      memlock:
        soft: -1
        hard: -1
    logging:
      driver: "json-file"
      options:
        max-size: "100m"
        max-file: "1"
    volumes:
      - "./opensearch.yml:/usr/share/opensearch/config/opensearch.yml"
      - "os-data2:/usr/share/opensearch/data"
      - "./certs:/usr/share/opensearch/config/certificates:ro"
  
  kibana:
    restart: always
    image: opensearchproject/opensearch-dashboards:2.14.0
    environment:
      OPENSEARCH_HOSTS: '["https://os01:9200","https://os02:9200"]' # must be a string with no spaces when specified as an environment variable
      DISABLE_INSTALL_DEMO_CONFIG: "true"
    logging:
      driver: "json-file"
      options:
        max-size: "100m"
        max-file: "1"
    volumes:
      - "./certs:/usr/share/opensearch-dashboards/config/certificates:ro"
      - "./opensearch-dashboards.yml:/usr/share/opensearch-dashboards/config/opensearch_dashboards.yml"
    ports:
      - 5601:5601

volumes:
  os-data1:
  os-data2:

```

after that

```auto
curl -XPOST https://localhost:9200/_plugins/_performanceanalyzer/cluster/config -H 'Content-Type: application/json' -d '{"enabled": true}' -u 'admin:admin' -k
curl -XPOST https://localhost:9200/_plugins/_performanceanalyzer/rca/cluster/config -H 'Content-Type: application/json' -d '{"enabled": true}' -u 'admin:admin' -k

curl -k -u admin:admin -XPOST https://localhost:9200/_plugins/_performanceanalyzer/batch/config -H 'Content-Type: application/json' -d '{"enabled": true}'
curl -k -u admin:admin -XPOST https://localhost:9200/_plugins/_performanceanalyzer/batch/cluster/config -H 'Content-Type: application/json' -d '{"enabled": true}'

```

**Relevant Logs or Screenshots** :  
GET [https://localhost:9200/\_plugins/\_performanceanalyzer/cluster/config/?verbose](https://localhost:9200/_plugins/_performanceanalyzer/cluster/config/?verbose)  
{  
“currentPerformanceAnalyzerClusterState”: {  
“PerformanceAnalyzerEnabled”: true,  
“RcaEnabled”: true,  
“LoggingEnabled”: false,  
“BatchMetricsEnabled”: true,  
“ThreadContentionMonitoringEnabled”: false  
},  
“shardsPerCollection”: 0,  
“batchMetricsRetentionPeriodMinutes”: 7  
}

Pls help me.

---

<div class="post-metadata">

**Author:** ![pdcuong27](https://avatars.discourse-cdn.com/v4/letter/p/a5b964/32.png) [@pdcuong27](https://forum.opensearch.org/u/pdcuong27)\
**Post date:** [August 15, 2024, 3:31am UTC](https://forum.opensearch.org/t/performance-analyzer-webservice-does-not-come-up/20831/2 "2024-08-15T03:31:27Z")

</div>

performance-analyzer.properties is default.

---

<div class="post-metadata">

**Author:** ![dancristiancecoi](https://avatars.discourse-cdn.com/v4/letter/d/cab0a1/32.png) [@dancristiancecoi](https://forum.opensearch.org/u/dancristiancecoi)\
**Post date:** [August 21, 2024, 12:52pm UTC](https://forum.opensearch.org/t/performance-analyzer-webservice-does-not-come-up/20831/3 "2024-08-21T12:52:04Z")

</div>

Are you seeing any errors in logs/PerformanceAnalyzer.log ?

---

<div class="post-metadata">

**Author:** ![pablo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/pablo/32/10363_2.png) [@pablo](https://forum.opensearch.org/u/pablo)\
**Post date:** [August 21, 2024, 2:01pm UTC](https://forum.opensearch.org/t/performance-analyzer-webservice-does-not-come-up/20831/4 "2024-08-21T14:01:31Z")

</div>

@pdcuong27 All plugins.security settings must be passed through opensearch.yml instead of environment variables.

---

<div class="post-metadata">

**Author:** ![pablo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/pablo/32/10363_2.png) [@pablo](https://forum.opensearch.org/u/pablo)\
**Post date:** [August 21, 2024, 2:07pm UTC](https://forum.opensearch.org/t/performance-analyzer-webservice-does-not-come-up/20831/5 "2024-08-21T14:07:32Z")

</div>

@pdcuong27 How did you get admin:admin working? This is not valid since 2.11  
This docker-compose should failed to start due to missing OPENSEARCH\_INITIAL\_ADMIN\_PASSWORD.

---

<div class="post-metadata">

**Author:** ![pdcuong27](https://avatars.discourse-cdn.com/v4/letter/p/a5b964/32.png) [@pdcuong27](https://forum.opensearch.org/u/pdcuong27)\
**Post date:** [August 21, 2024, 3:25pm UTC](https://forum.opensearch.org/t/performance-analyzer-webservice-does-not-come-up/20831/6 "2024-08-21T15:25:32Z")

</div>

@pablo, I think I pushed the wrong `docker-compose.yaml`. The bug I’m facing is described here: [[BUG] Performance Analyzer webserver on port 9600 not responding to any API calls (caused by JDK upgrade?) · Issue #545 · opensearch-project/performance-analyzer-rca · GitHub](https://github.com/opensearch-project/performance-analyzer-rca/issues/545).

Do you have any suggestions on how to resolve this? I hope to use this plugin in an OpenSearch cluster deployed by an operator.

Thanks!

---

<div class="post-metadata">

**Author:** ![pablo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/pablo/32/10363_2.png) [@pablo](https://forum.opensearch.org/u/pablo)\
**Post date:** [August 22, 2024, 11:10am UTC](https://forum.opensearch.org/t/performance-analyzer-webservice-does-not-come-up/20831/7 "2024-08-22T11:10:32Z")

</div>

@pdcuong27 I’ve got the same result from 2.12 up to 2.16. I’ve tried solution with custom image build but it didn’t work for me. Have you tried that?

I see there is a bug fix still ongoing.

> <https://github.com/opensearch-project/performance-analyzer-rca/pull/565>
>
> \*\*Is your feature request related to a problem? Please provide an existing Issue… # , or describe.\*\*
> resolved #545 
> 
> \*\*Describe the solution you are proposing\*\*
> httpServer.createContext throws illegalArgumentException when called more than once for same parameters. This commit ensures to avoid such scenarios in the PerformanceAnalyzerApp main class by fixing the legacy parameter. This commit also ensures that the RcaController thread gracefully handles the similar situation when RcaController thread is killed and respawned.
> 
> \*\*Describe alternatives you've considered\*\*
> 
> 
> \*\*Additional context\*\*
> Add any other context or screenshots about the feature request here.
> 
> \### Check List
> \- \[x\] Backport Labels added.   
> \- \[x\] New functionality includes testing.
> - \[x\] All tests pass
> \- \[x\] New functionality has been documented.
> - \[x\] New functionality has javadoc added
> \- \[x\] Commits are signed per the DCO using --signoff
> 
> By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
> For more information on following Developer Certificate of Origin and signing off your commits, please check \[here\](https://github.com/opensearch-project/performance-analyzer-rca/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/3/33547ea01a5b12dcca2958411d3edd97ae2ea8c1.png) [@system](https://forum.opensearch.org/u/system)\
**Post date:** [October 21, 2024, 11:10am UTC](https://forum.opensearch.org/t/performance-analyzer-webservice-does-not-come-up/20831/8 "2024-10-21T11:10:55Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
